|
1
|
{ |
|
2
|
"description": "This component is based on the [Radix UI Avatar](https://www.radix-ui.com/primitives/docs/components/avatar) primitive.", |
|
3
|
"methods": [], |
|
4
|
"displayName": "Avatar", |
|
5
|
"props": { |
|
6
|
"src": { |
|
7
|
"required": false, |
|
8
|
"tsType": { |
|
9
|
"name": "string" |
|
10
|
}, |
|
11
|
"description": "The URL of the image used in the Avatar." |
|
12
|
}, |
|
13
|
"fallback": { |
|
14
|
"required": true, |
|
15
|
"tsType": { |
|
16
|
"name": "string" |
|
17
|
}, |
|
18
|
"description": "Text to show in the avatar if the URL provided in `src` can't be opened." |
|
19
|
}, |
|
20
|
"variant": { |
|
21
|
"defaultValue": { |
|
22
|
"value": "\"rounded\"", |
|
23
|
"computed": false |
|
24
|
}, |
|
25
|
"description": "The style of the avatar.", |
|
26
|
"tsType": { |
|
27
|
"name": "union", |
|
28
|
"raw": "\"squared\" \\| \"rounded\"", |
|
29
|
"elements": [ |
|
30
|
{ |
|
31
|
"name": "literal", |
|
32
|
"value": "\"squared\"" |
|
33
|
}, |
|
34
|
{ |
|
35
|
"name": "literal", |
|
36
|
"value": "\"rounded\"" |
|
37
|
} |
|
38
|
] |
|
39
|
}, |
|
40
|
"required": false |
|
41
|
}, |
|
42
|
"size": { |
|
43
|
"defaultValue": { |
|
44
|
"value": "\"base\"", |
|
45
|
"computed": false |
|
46
|
}, |
|
47
|
"description": "The size of the avatar's border radius.", |
|
48
|
"tsType": { |
|
49
|
"name": "union", |
|
50
|
"raw": "\"2xsmall\" \\| \"xsmall\" \\| \"small\" \\| \"base\" \\| \"large\" \\| \"xlarge\"", |
|
51
|
"elements": [ |
|
52
|
{ |
|
53
|
"name": "literal", |
|
54
|
"value": "\"2xsmall\"" |
|
55
|
}, |
|
56
|
{ |
|
57
|
"name": "literal", |
|
58
|
"value": "\"xsmall\"" |
|
59
|
}, |
|
60
|
{ |
|
61
|
"name": "literal", |
|
62
|
"value": "\"small\"" |
|
63
|
}, |
|
64
|
{ |
|
65
|
"name": "literal", |
|
66
|
"value": "\"base\"" |
|
67
|
}, |
|
68
|
{ |
|
69
|
"name": "literal", |
|
70
|
"value": "\"large\"" |
|
71
|
}, |
|
72
|
{ |
|
73
|
"name": "literal", |
|
74
|
"value": "\"xlarge\"" |
|
75
|
} |
|
76
|
] |
|
77
|
}, |
|
78
|
"required": false |
|
79
|
} |
|
80
|
}, |
|
81
|
"composes": [ |
|
82
|
"Omit", |
|
83
|
"VariantProps" |
|
84
|
] |
|
85
|
} |