import {
  Canvas,
  Meta,
  Story,
  ArgsTable
} from '@storybook/addon-docs'
import RplSpinner from './RplSpinner.vue'
import { a11yStoryCheck } from './../../../stories/interactions.js'

export const SingleTemplate = (args) => ({
  components: { RplSpinner },
  setup() {
    return { args }
  },
  template: '<RplSpinner v-bind="args" />'
})

<Meta
  title='Base styles/Icons/Spinner'
  component={RplSpinner}
/>

# Spinner

<ArgsTable of={RplSpinner} />

<Canvas>
  <Story
    name='Spinner'
    play={a11yStoryCheck}
  >
    {SingleTemplate.bind()}
  </Story>
</Canvas>
