mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
- video-player: Add sources array and poster - avatar-group: Add items array with sample avatars - choicebox: Add options array with sample choices - menu-dock: Add items array with icons from lucide-react These demos were missing required props which caused static export to fail. All demos now have proper sample data.
10 lines
795 B
JSON
10 lines
795 B
JSON
{
|
|
"name": "choicebox-demo",
|
|
"files": [
|
|
{
|
|
"name": "choicebox-demo.tsx",
|
|
"content": "import { Choicebox } from \"@/registry/default/ui/choicebox\"\n\nexport default function ChoiceboxDemo() {\n const options = [\n {\n value: \"option1\",\n label: \"Option 1\",\n description: \"This is the first option\",\n },\n {\n value: \"option2\",\n label: \"Option 2\",\n description: \"This is the second option\",\n },\n {\n value: \"option3\",\n label: \"Option 3\",\n description: \"This is the third option\",\n },\n ]\n\n return (\n <div className=\"w-full min-h-[400px] flex items-center justify-center\">\n <Choicebox options={options} />\n </div>\n )\n}\n"
|
|
}
|
|
],
|
|
"type": "components:example"
|
|
} |