|
1
|
{ |
|
2
|
"description": "This component is based on the `div` element and supports all of its props", |
|
3
|
"methods": [], |
|
4
|
"displayName": "Badge", |
|
5
|
"props": { |
|
6
|
"asChild": { |
|
7
|
"required": false, |
|
8
|
"tsType": { |
|
9
|
"name": "boolean" |
|
10
|
}, |
|
11
|
"description": "Whether to remove the wrapper `span` element and use the\npassed child element instead.", |
|
12
|
"defaultValue": { |
|
13
|
"value": "false", |
|
14
|
"computed": false |
|
15
|
} |
|
16
|
}, |
|
17
|
"size": { |
|
18
|
"defaultValue": { |
|
19
|
"value": "\"base\"", |
|
20
|
"computed": false |
|
21
|
}, |
|
22
|
"description": "The badge's size.", |
|
23
|
"tsType": { |
|
24
|
"name": "union", |
|
25
|
"raw": "\"2xsmall\" \\| \"xsmall\" \\| \"small\" \\| \"base\" \\| \"large\"", |
|
26
|
"elements": [ |
|
27
|
{ |
|
28
|
"name": "literal", |
|
29
|
"value": "\"2xsmall\"" |
|
30
|
}, |
|
31
|
{ |
|
32
|
"name": "literal", |
|
33
|
"value": "\"xsmall\"" |
|
34
|
}, |
|
35
|
{ |
|
36
|
"name": "literal", |
|
37
|
"value": "\"small\"" |
|
38
|
}, |
|
39
|
{ |
|
40
|
"name": "literal", |
|
41
|
"value": "\"base\"" |
|
42
|
}, |
|
43
|
{ |
|
44
|
"name": "literal", |
|
45
|
"value": "\"large\"" |
|
46
|
} |
|
47
|
] |
|
48
|
}, |
|
49
|
"required": false |
|
50
|
}, |
|
51
|
"rounded": { |
|
52
|
"defaultValue": { |
|
53
|
"value": "\"base\"", |
|
54
|
"computed": false |
|
55
|
}, |
|
56
|
"description": "The style of the badge's border radius.", |
|
57
|
"tsType": { |
|
58
|
"name": "union", |
|
59
|
"raw": "\"base\" \\| \"full\"", |
|
60
|
"elements": [ |
|
61
|
{ |
|
62
|
"name": "literal", |
|
63
|
"value": "\"base\"" |
|
64
|
}, |
|
65
|
{ |
|
66
|
"name": "literal", |
|
67
|
"value": "\"full\"" |
|
68
|
} |
|
69
|
] |
|
70
|
}, |
|
71
|
"required": false |
|
72
|
}, |
|
73
|
"color": { |
|
74
|
"defaultValue": { |
|
75
|
"value": "\"grey\"", |
|
76
|
"computed": false |
|
77
|
}, |
|
78
|
"description": "The badge's color.", |
|
79
|
"tsType": { |
|
80
|
"name": "union", |
|
81
|
"raw": "\"green\" \\| \"red\" \\| \"blue\" \\| \"orange\" \\| \"grey\" \\| \"purple\"", |
|
82
|
"elements": [ |
|
83
|
{ |
|
84
|
"name": "literal", |
|
85
|
"value": "\"green\"" |
|
86
|
}, |
|
87
|
{ |
|
88
|
"name": "literal", |
|
89
|
"value": "\"red\"" |
|
90
|
}, |
|
91
|
{ |
|
92
|
"name": "literal", |
|
93
|
"value": "\"blue\"" |
|
94
|
}, |
|
95
|
{ |
|
96
|
"name": "literal", |
|
97
|
"value": "\"orange\"" |
|
98
|
}, |
|
99
|
{ |
|
100
|
"name": "literal", |
|
101
|
"value": "\"grey\"" |
|
102
|
}, |
|
103
|
{ |
|
104
|
"name": "literal", |
|
105
|
"value": "\"purple\"" |
|
106
|
} |
|
107
|
] |
|
108
|
}, |
|
109
|
"required": false |
|
110
|
} |
|
111
|
}, |
|
112
|
"composes": [ |
|
113
|
"Omit", |
|
114
|
"VariantProps" |
|
115
|
] |
|
116
|
} |