|
1
|
{ |
|
2
|
"description": "This component is based on the `button` element and supports all of its props", |
|
3
|
"methods": [], |
|
4
|
"displayName": "IconButton", |
|
5
|
"props": { |
|
6
|
"asChild": { |
|
7
|
"required": false, |
|
8
|
"tsType": { |
|
9
|
"name": "boolean" |
|
10
|
}, |
|
11
|
"description": "Whether to remove the wrapper `button` element and use the\npassed child element instead.", |
|
12
|
"defaultValue": { |
|
13
|
"value": "false", |
|
14
|
"computed": false |
|
15
|
} |
|
16
|
}, |
|
17
|
"isLoading": { |
|
18
|
"required": false, |
|
19
|
"tsType": { |
|
20
|
"name": "boolean" |
|
21
|
}, |
|
22
|
"description": "Whether to show a loading spinner.", |
|
23
|
"defaultValue": { |
|
24
|
"value": "false", |
|
25
|
"computed": false |
|
26
|
} |
|
27
|
}, |
|
28
|
"variant": { |
|
29
|
"defaultValue": { |
|
30
|
"value": "\"primary\"", |
|
31
|
"computed": false |
|
32
|
}, |
|
33
|
"description": "The button's style.", |
|
34
|
"tsType": { |
|
35
|
"name": "union", |
|
36
|
"raw": "\"primary\" \\| \"transparent\"", |
|
37
|
"elements": [ |
|
38
|
{ |
|
39
|
"name": "literal", |
|
40
|
"value": "\"primary\"" |
|
41
|
}, |
|
42
|
{ |
|
43
|
"name": "literal", |
|
44
|
"value": "\"transparent\"" |
|
45
|
} |
|
46
|
] |
|
47
|
}, |
|
48
|
"required": false |
|
49
|
}, |
|
50
|
"size": { |
|
51
|
"defaultValue": { |
|
52
|
"value": "\"base\"", |
|
53
|
"computed": false |
|
54
|
}, |
|
55
|
"description": "The button's size.", |
|
56
|
"tsType": { |
|
57
|
"name": "union", |
|
58
|
"raw": "\"2xsmall\" \\| \"xsmall\" \\| \"small\" \\| \"base\" \\| \"large\" \\| \"xlarge\"", |
|
59
|
"elements": [ |
|
60
|
{ |
|
61
|
"name": "literal", |
|
62
|
"value": "\"2xsmall\"" |
|
63
|
}, |
|
64
|
{ |
|
65
|
"name": "literal", |
|
66
|
"value": "\"xsmall\"" |
|
67
|
}, |
|
68
|
{ |
|
69
|
"name": "literal", |
|
70
|
"value": "\"small\"" |
|
71
|
}, |
|
72
|
{ |
|
73
|
"name": "literal", |
|
74
|
"value": "\"base\"" |
|
75
|
}, |
|
76
|
{ |
|
77
|
"name": "literal", |
|
78
|
"value": "\"large\"" |
|
79
|
}, |
|
80
|
{ |
|
81
|
"name": "literal", |
|
82
|
"value": "\"xlarge\"" |
|
83
|
} |
|
84
|
] |
|
85
|
}, |
|
86
|
"required": false |
|
87
|
} |
|
88
|
}, |
|
89
|
"composes": [ |
|
90
|
"VariantProps" |
|
91
|
] |
|
92
|
} |