|
1
|
{ |
|
2
|
"description": "This component is based on the [Toaster component of the Sonner library](https://sonner.emilkowal.ski/toaster).", |
|
3
|
"methods": [], |
|
4
|
"displayName": "Toaster", |
|
5
|
"props": { |
|
6
|
"position": { |
|
7
|
"defaultValue": { |
|
8
|
"value": "\"bottom-right\"", |
|
9
|
"computed": false |
|
10
|
}, |
|
11
|
"description": "The position of the created toasts.", |
|
12
|
"tsType": { |
|
13
|
"name": "union", |
|
14
|
"elements": [ |
|
15
|
{ |
|
16
|
"name": "literal", |
|
17
|
"value": "\"top-left\"" |
|
18
|
}, |
|
19
|
{ |
|
20
|
"name": "literal", |
|
21
|
"value": "\"top-center\"" |
|
22
|
}, |
|
23
|
{ |
|
24
|
"name": "literal", |
|
25
|
"value": "\"top-right\"" |
|
26
|
}, |
|
27
|
{ |
|
28
|
"name": "literal", |
|
29
|
"value": "\"bottom-left\"" |
|
30
|
}, |
|
31
|
{ |
|
32
|
"name": "literal", |
|
33
|
"value": "\"bottom-center\"" |
|
34
|
}, |
|
35
|
{ |
|
36
|
"name": "literal", |
|
37
|
"value": "\"bottom-right\"" |
|
38
|
}, |
|
39
|
{ |
|
40
|
"name": "undefined" |
|
41
|
} |
|
42
|
] |
|
43
|
}, |
|
44
|
"required": false |
|
45
|
}, |
|
46
|
"gap": { |
|
47
|
"defaultValue": { |
|
48
|
"value": "12", |
|
49
|
"computed": false |
|
50
|
}, |
|
51
|
"description": "The gap between the toast components.", |
|
52
|
"tsType": { |
|
53
|
"name": "number" |
|
54
|
}, |
|
55
|
"required": false |
|
56
|
}, |
|
57
|
"offset": { |
|
58
|
"defaultValue": { |
|
59
|
"value": "24", |
|
60
|
"computed": false |
|
61
|
}, |
|
62
|
"description": "The space from the edges of the screen.", |
|
63
|
"tsType": { |
|
64
|
"name": "union", |
|
65
|
"elements": [ |
|
66
|
{ |
|
67
|
"name": "string" |
|
68
|
}, |
|
69
|
{ |
|
70
|
"name": "number" |
|
71
|
}, |
|
72
|
{ |
|
73
|
"name": "undefined" |
|
74
|
} |
|
75
|
] |
|
76
|
}, |
|
77
|
"required": false |
|
78
|
}, |
|
79
|
"duration": { |
|
80
|
"description": "The time in milliseconds that a toast is shown before it's\nautomatically dismissed.\n\n", |
|
81
|
"tsType": { |
|
82
|
"name": "number" |
|
83
|
}, |
|
84
|
"defaultValue": { |
|
85
|
"value": "4000", |
|
86
|
"computed": false |
|
87
|
} |
|
88
|
} |
|
89
|
}, |
|
90
|
"composes": [ |
|
91
|
"Omit" |
|
92
|
] |
|
93
|
} |