-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplain-button.stories.ts
39 lines (36 loc) · 1.05 KB
/
plain-button.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
export default {
title: 'Components/PlainButton',
argTypes: {
buttonName: { control: 'text' },
addClass: { control: 'text' },
type: {
options: ['contained', 'outlined', 'text'],
control: { type: 'radio' },
},
width: {
options: ['full', 'auto'],
control: { type: 'radio' },
},
color: {
options: ['black', 'slate-900', 'orange-700'],
control: { type: 'radio' },
},
hoverColor: {
options: ['stone-500', 'red-300', 'orange-200'],
control: { type: 'radio' },
},
disabledHandler: { control: 'boolean' },
},
};
const Template = args =>
`<plain-button addClass="${args.addClass}" type="${args.type}" width="${args.width}" color='${args.color}' hoverColor='${args.hoverColor}' disabledHandler="${args.disabledHandler}">${args.buttonName}</plain-button>`;
export const PlainButton = Template.bind({});
PlainButton.args = {
buttonName: 'Plain Button',
addClass: '',
type: 'outlined',
width: 'auto',
color: 'red-300',
hoverColor: 'red-400',
disabledHandler: 'false',
};