mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +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.
28 lines
598 B
TypeScript
28 lines
598 B
TypeScript
import { Choicebox } from "@/registry/default/ui/choicebox"
|
|
|
|
export default function ChoiceboxDemo() {
|
|
const options = [
|
|
{
|
|
value: "option1",
|
|
label: "Option 1",
|
|
description: "This is the first option",
|
|
},
|
|
{
|
|
value: "option2",
|
|
label: "Option 2",
|
|
description: "This is the second option",
|
|
},
|
|
{
|
|
value: "option3",
|
|
label: "Option 3",
|
|
description: "This is the third option",
|
|
},
|
|
]
|
|
|
|
return (
|
|
<div className="w-full min-h-[400px] flex items-center justify-center">
|
|
<Choicebox options={options} />
|
|
</div>
|
|
)
|
|
}
|