summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/loaders/spinner.stories.tsx
blob: 5006ce47f36efa70f944926fb2dee34d979ea81a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { ComponentMeta, ComponentStory } from '@storybook/react';
import { IntlProvider } from 'react-intl';
import SpinnerComponent from './spinner';

export default {
  title: 'Atoms/Loaders',
  component: SpinnerComponent,
  argTypes: {
    message: {
      control: {
        type: 'text',
      },
      description: 'Loading message.',
      table: {
        category: 'Options',
      },
      type: {
        name: 'string',
        required: false,
      },
    },
  },
} as ComponentMeta<typeof SpinnerComponent>;

const Template: ComponentStory<typeof SpinnerComponent> = (args) => (
  <IntlProvider locale="en">
    <SpinnerComponent {...args} />
  </IntlProvider>
);

export const Spinner = Template.bind({});