aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/loaders/spinner/spinner.stories.ts
blob: 63d7f214bf9b6d47cc830840914eec71f5d33db2 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import type { Meta, StoryObj } from '@storybook/react';
import { Spinner } from './spinner';

const meta = {
  component: Spinner,
  title: 'Atoms/Loaders/Spinner',
} satisfies Meta<typeof Spinner>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Example: Story = {
  args: {
    'aria-label': 'A spinner example',
  },
};

export const WithTextOnBottom: Story = {
  args: {
    children: 'A spinner example',
    position: 'bottom',
  },
};

export const WithTextOnLeft: Story = {
  args: {
    children: 'A spinner example',
    position: 'left',
  },
};

export const WithTextOnRight: Story = {
  args: {
    children: 'A spinner example',
    position: 'right',
  },
};

export const WithTextOnTop: Story = {
  args: {
    children: 'A spinner example',
    position: 'top',
  },
};