* chore(docs): Generated + Updated UI Reference (automated) * fix react-docs-generator not resolving external types * sort undefined --------- Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
93 lines
2.0 KiB
JSON
93 lines
2.0 KiB
JSON
{
|
|
"description": "This component is based on the [Toaster component of the Sonner library](https://sonner.emilkowal.ski/toaster).",
|
|
"methods": [],
|
|
"displayName": "Toaster",
|
|
"props": {
|
|
"position": {
|
|
"defaultValue": {
|
|
"value": "\"bottom-right\"",
|
|
"computed": false
|
|
},
|
|
"description": "The position of the created toasts.",
|
|
"tsType": {
|
|
"name": "union",
|
|
"elements": [
|
|
{
|
|
"name": "literal",
|
|
"value": "\"top-left\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"top-center\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"top-right\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"bottom-left\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"bottom-center\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"bottom-right\""
|
|
},
|
|
{
|
|
"name": "undefined"
|
|
}
|
|
]
|
|
},
|
|
"required": false
|
|
},
|
|
"gap": {
|
|
"defaultValue": {
|
|
"value": "12",
|
|
"computed": false
|
|
},
|
|
"description": "The gap between the toast components.",
|
|
"tsType": {
|
|
"name": "number"
|
|
},
|
|
"required": false
|
|
},
|
|
"offset": {
|
|
"defaultValue": {
|
|
"value": "24",
|
|
"computed": false
|
|
},
|
|
"description": "The space from the edges of the screen.",
|
|
"tsType": {
|
|
"name": "union",
|
|
"elements": [
|
|
{
|
|
"name": "string"
|
|
},
|
|
{
|
|
"name": "number"
|
|
},
|
|
{
|
|
"name": "undefined"
|
|
}
|
|
]
|
|
},
|
|
"required": false
|
|
},
|
|
"duration": {
|
|
"description": "The time in milliseconds that a toast is shown before it's\nautomatically dismissed.\n\n",
|
|
"tsType": {
|
|
"name": "number"
|
|
},
|
|
"defaultValue": {
|
|
"value": "4000",
|
|
"computed": false
|
|
}
|
|
}
|
|
},
|
|
"composes": [
|
|
"Omit"
|
|
]
|
|
} |