|
1
|
{ |
|
2
|
"description": "This component is based on the `p` element and supports all of its props", |
|
3
|
"methods": [], |
|
4
|
"displayName": "Text", |
|
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
|
"as": { |
|
18
|
"required": false, |
|
19
|
"tsType": { |
|
20
|
"name": "union", |
|
21
|
"raw": "\"p\" | \"span\" | \"div\"", |
|
22
|
"elements": [ |
|
23
|
{ |
|
24
|
"name": "literal", |
|
25
|
"value": "\"p\"" |
|
26
|
}, |
|
27
|
{ |
|
28
|
"name": "literal", |
|
29
|
"value": "\"span\"" |
|
30
|
}, |
|
31
|
{ |
|
32
|
"name": "literal", |
|
33
|
"value": "\"div\"" |
|
34
|
} |
|
35
|
] |
|
36
|
}, |
|
37
|
"description": "The wrapper element to use when `asChild` is disabled.", |
|
38
|
"defaultValue": { |
|
39
|
"value": "\"p\"", |
|
40
|
"computed": false |
|
41
|
} |
|
42
|
}, |
|
43
|
"size": { |
|
44
|
"defaultValue": { |
|
45
|
"value": "\"base\"", |
|
46
|
"computed": false |
|
47
|
}, |
|
48
|
"description": "The text's size.", |
|
49
|
"tsType": { |
|
50
|
"name": "union", |
|
51
|
"raw": "\"xsmall\" \\| \"small\" \\| \"base\" \\| \"large\" \\| \"xlarge\"", |
|
52
|
"elements": [ |
|
53
|
{ |
|
54
|
"name": "literal", |
|
55
|
"value": "\"xsmall\"" |
|
56
|
}, |
|
57
|
{ |
|
58
|
"name": "literal", |
|
59
|
"value": "\"small\"" |
|
60
|
}, |
|
61
|
{ |
|
62
|
"name": "literal", |
|
63
|
"value": "\"base\"" |
|
64
|
}, |
|
65
|
{ |
|
66
|
"name": "literal", |
|
67
|
"value": "\"large\"" |
|
68
|
}, |
|
69
|
{ |
|
70
|
"name": "literal", |
|
71
|
"value": "\"xlarge\"" |
|
72
|
} |
|
73
|
] |
|
74
|
}, |
|
75
|
"required": false |
|
76
|
}, |
|
77
|
"weight": { |
|
78
|
"defaultValue": { |
|
79
|
"value": "\"regular\"", |
|
80
|
"computed": false |
|
81
|
}, |
|
82
|
"description": "The text's font weight.", |
|
83
|
"tsType": { |
|
84
|
"name": "union", |
|
85
|
"raw": "\"regular\" \\| \"plus\"", |
|
86
|
"elements": [ |
|
87
|
{ |
|
88
|
"name": "literal", |
|
89
|
"value": "\"regular\"" |
|
90
|
}, |
|
91
|
{ |
|
92
|
"name": "literal", |
|
93
|
"value": "\"plus\"" |
|
94
|
} |
|
95
|
] |
|
96
|
}, |
|
97
|
"required": false |
|
98
|
}, |
|
99
|
"family": { |
|
100
|
"defaultValue": { |
|
101
|
"value": "\"sans\"", |
|
102
|
"computed": false |
|
103
|
}, |
|
104
|
"description": "The text's font family.", |
|
105
|
"tsType": { |
|
106
|
"name": "union", |
|
107
|
"raw": "\"sans\" \\| \"mono\"", |
|
108
|
"elements": [ |
|
109
|
{ |
|
110
|
"name": "literal", |
|
111
|
"value": "\"sans\"" |
|
112
|
}, |
|
113
|
{ |
|
114
|
"name": "literal", |
|
115
|
"value": "\"mono\"" |
|
116
|
} |
|
117
|
] |
|
118
|
}, |
|
119
|
"required": false |
|
120
|
}, |
|
121
|
"leading": { |
|
122
|
"defaultValue": { |
|
123
|
"value": "\"normal\"", |
|
124
|
"computed": false |
|
125
|
}, |
|
126
|
"description": "The text's line height.", |
|
127
|
"tsType": { |
|
128
|
"name": "union", |
|
129
|
"raw": "\"normal\" \\| \"compact\"", |
|
130
|
"elements": [ |
|
131
|
{ |
|
132
|
"name": "literal", |
|
133
|
"value": "\"normal\"" |
|
134
|
}, |
|
135
|
{ |
|
136
|
"name": "literal", |
|
137
|
"value": "\"compact\"" |
|
138
|
} |
|
139
|
] |
|
140
|
}, |
|
141
|
"required": false |
|
142
|
} |
|
143
|
}, |
|
144
|
"composes": [ |
|
145
|
"VariantProps" |
|
146
|
] |
|
147
|
} |