aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/buttons/button/button.stories.ts
blob: 25fb9f80208852f5725986bf1133e8905d9f2ef9 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import type { Meta, StoryObj } from '@storybook/react';
import { Button } from './button';

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

export default meta;

type Story = StoryObj<typeof meta>;

export const Default: Story = {
  args: {
    children: 'Button',
  },
};

export const Primary: Story = {
  name: 'Kind: Primary',
  args: {
    ...Default.args,
    kind: 'primary',
  },
};

export const Secondary: Story = {
  name: 'Kind: Secondary',
  args: {
    ...Default.args,
    kind: 'secondary',
  },
};

export const Tertiary: Story = {
  name: 'Kind: Tertiary',
  args: {
    ...Default.args,
    kind: 'tertiary',
  },
};

export const Neutral: Story = {
  name: 'Kind: Neutral',
  args: {
    ...Default.args,
    kind: 'neutral',
  },
};

export const Enabled: Story = {
  name: 'State: Enabled',
  args: {
    ...Default.args,
  },
};

export const Disabled: Story = {
  name: 'State: Disabled',
  args: {
    ...Default.args,
    isDisabled: true,
  },
};

export const Loading: Story = {
  name: 'State: Loading',
  args: {
    ...Default.args,
    isLoading: true,
  },
};

export const Pressed: Story = {
  name: 'State: Pressed',
  args: {
    ...Default.args,
    isPressed: true,
  },
};

export const Circle: Story = {
  name: 'Shape: Circle',
  args: {
    ...Default.args,
    shape: 'circle',
  },
};

export const Rectangle: Story = {
  name: 'Shape: Rectangle',
  args: {
    ...Default.args,
    shape: 'rectangle',
  },
};

export const Square: Story = {
  name: 'Shape: Square',
  args: {
    ...Default.args,
    shape: 'square',
  },
};

export const Initial: Story = {
  name: 'Shape: Initial',
  args: {
    ...Default.args,
    shape: 'initial',
  },
};