shadcn-vue/apps/www/src/public/r/styles/default/SwitchDemo.json
2024-11-23 00:49:59 +08:00

18 lines
607 B
JSON

{
"name": "SwitchDemo",
"type": "registry:example",
"dependencies": [],
"registryDependencies": [
"label",
"switch"
],
"files": [
{
"path": "example/SwitchDemo.vue",
"content": "<script setup lang=\"ts\">\nimport { Label } from '@/registry/default/ui/label'\nimport { Switch } from '@/registry/default/ui/switch'\n</script>\n\n<template>\n <div class=\"flex items-center space-x-2\">\n <Switch id=\"airplane-mode\" />\n <Label for=\"airplane-mode\">Airplane Mode</Label>\n </div>\n</template>\n",
"type": "registry:example",
"target": ""
}
]
}