-
Notifications
You must be signed in to change notification settings - Fork 17
/
story.args.js
50 lines (49 loc) · 1.18 KB
/
story.args.js
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
export const args = {
label: '',
name: '',
refId: '',
placeholder: '',
value: '',
currency: '',
error: '',
info: '',
autocomplete: false,
checkMark: false,
disabled: false,
readonly: false,
required: false,
invalid: false,
type: 'text',
maxLength: '50',
counter: 'Still ##counter## characters left',
counterMax: 'Over character limit!',
pattern: '',
inputmode: '',
autofocus: false,
};
export const argTypes = {
label: { control: 'text' },
name: { control: 'text' },
refId: { control: 'text' },
placeholder: { control: 'text' },
value: { control: 'text' },
currency: { control: 'text' },
error: { control: 'text' },
info: { control: 'text' },
checkMark: { control: 'boolean' },
disabled: { control: 'boolean' },
autocomplete: { control: 'boolean' },
readonly: { control: 'boolean' },
required: { control: 'boolean' },
invalid: { control: 'boolean' },
type: {
control: 'radio',
options: ['text', 'email', 'password'],
},
maxLength: { control: 'text' },
counter: { control: 'text' },
counterMax: { control: 'text' },
pattern: { control: 'text' },
inputmode: { control: 'text' },
autofocus: { control: 'boolean' },
};