-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Card.stories.ts
53 lines (45 loc) · 1.06 KB
/
Card.stories.ts
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
import type { Meta, StoryObj } from '@storybook/react'
import { Card } from './Card'
type Story = StoryObj<typeof Card>
const meta: Meta<typeof Card> = {
title: 'Example',
component: Card,
}
export default meta
export const PresetOptions: Story = {
args: {
children: 'This story uses preset padding options. (Small, Medium & Large)',
},
}
export const CustomOptions: Story = {
args: {
children: 'This story uses custom padding options. (xs, sm, md, lg & xl)',
},
parameters: {
paddings: {
values: [
{ name: 'xs', value: '8px' },
{ name: 'sm', value: '16px' },
{ name: 'md', value: '24px' },
{ name: 'lg', value: '32px' },
{ name: 'xl', value: '48px' },
],
},
},
}
export const DefaultOption: Story = {
args: {
children: 'This story sets a default padding option. (Medium)',
},
parameters: {
paddings: { default: 'Medium' },
},
}
export const Disabled: Story = {
args: {
children: 'This story disables paddings.',
},
parameters: {
paddings: { disable: true },
},
}