mirror of
https://github.com/cosscom/coss.git
synced 2026-09-14 20:06:50 +08:00
20 lines
1.0 KiB
JSON
20 lines
1.0 KiB
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "checkbox-group-demo",
|
|
"type": "registry:example",
|
|
"description": "Checkbox group",
|
|
"registryDependencies": [
|
|
"@coss/checkbox-group",
|
|
"@coss/checkbox",
|
|
"@coss/label"
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "registry/default/examples/checkbox-group-demo.tsx",
|
|
"content": "import { Checkbox } from \"@/registry/default/ui/checkbox\"\nimport { CheckboxGroup } from \"@/registry/default/ui/checkbox-group\"\nimport { Label } from \"@/registry/default/ui/label\"\n\nexport default function CheckboxGroupDemo() {\n return (\n <CheckboxGroup aria-label=\"Select frameworks\" defaultValue={[\"next\"]}>\n <Label>\n <Checkbox value=\"next\" />\n Next.js\n </Label>\n <Label>\n <Checkbox value=\"vite\" />\n Vite\n </Label>\n <Label>\n <Checkbox value=\"astro\" />\n Astro\n </Label>\n </CheckboxGroup>\n )\n}\n",
|
|
"type": "registry:example"
|
|
}
|
|
],
|
|
"categories": ["checkbox group", "checkbox"]
|
|
}
|