* docs: create a new UI docs project (#13233) * docs: create a new UI docs project * fix installation errors * docs: migrate UI docs content to new project (#13241) * Fix content * added examples for some components * finish adding examples * lint fix * fix build errors * delete empty files * path fixes + refactor * fix build error
50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
{
|
|
"description": "This component is based on the `button` element and supports all of its props",
|
|
"methods": [],
|
|
"displayName": "Copy",
|
|
"props": {
|
|
"content": {
|
|
"required": true,
|
|
"tsType": {
|
|
"name": "string"
|
|
},
|
|
"description": "The content to copy."
|
|
},
|
|
"variant": {
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "union",
|
|
"raw": "\"mini\" | \"default\" | null",
|
|
"elements": [
|
|
{
|
|
"name": "literal",
|
|
"value": "\"mini\""
|
|
},
|
|
{
|
|
"name": "literal",
|
|
"value": "\"default\""
|
|
},
|
|
{
|
|
"name": "null"
|
|
}
|
|
]
|
|
},
|
|
"description": "The variant of the copy button.",
|
|
"defaultValue": {
|
|
"value": "\"default\"",
|
|
"computed": false
|
|
}
|
|
},
|
|
"asChild": {
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "boolean"
|
|
},
|
|
"description": "Whether to remove the wrapper `button` element and use the\npassed child element instead.",
|
|
"defaultValue": {
|
|
"value": "false",
|
|
"computed": false
|
|
}
|
|
}
|
|
}
|
|
} |