forked from trussworks/react-uswds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathButton.stories.tsx
82 lines (69 loc) · 1.49 KB
/
Button.stories.tsx
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
import React, { type JSX } from 'react'
import { Button } from './Button'
export default {
title: 'Components/Button',
component: Button,
parameters: {
docs: {
description: {
component: `
### USWDS 3.0 Button component
Source: https://designsystem.digital.gov/components/button/
`,
},
},
},
}
export const DefaultButton = (): JSX.Element => (
<Button type="button">Click Me</Button>
)
export const Secondary = (): JSX.Element => (
<Button type="button" secondary>
Click Me
</Button>
)
export const AccentCool = (): JSX.Element => (
<Button type="button" accentStyle="cool">
Click Me
</Button>
)
export const AccentWarm = (): JSX.Element => (
<Button type="button" accentStyle="warm">
Click Me
</Button>
)
export const Base = (): JSX.Element => (
<Button type="button" base>
Click Me
</Button>
)
export const Outline = (): JSX.Element => (
<Button type="button" outline>
Click Me
</Button>
)
export const Inverse = (): JSX.Element => (
<Button type="button" inverse>
Click Me
</Button>
)
export const Big = (): JSX.Element => (
<Button type="button" size="big">
Click Me
</Button>
)
export const Unstyled = (): JSX.Element => (
<Button type="button" unstyled>
Click Me
</Button>
)
export const CustomClass = (): JSX.Element => (
<Button type="button" className="custom-class">
Click Me
</Button>
)
export const Disabled = (): JSX.Element => (
<Button type="button" disabled>
Click Me
</Button>
)