{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "popover-example", "title": "Popover", "registryDependencies": [ "button", "dialog", "field", "input", "popover", "example" ], "files": [ { "path": "registry/radix-nova/examples/popover-example.tsx", "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/bases/radix/ui/dialog\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/bases/radix/ui/field\"\nimport { Input } from \"@/registry/bases/radix/ui/input\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\n\nexport default function PopoverExample() {\n return (\n \n \n \n \n \n \n )\n}\n\nfunction PopoverBasic() {\n return (\n \n \n \n \n \n \n \n Dimensions\n \n Set the dimensions for the layer.\n \n \n \n \n \n )\n}\n\nfunction PopoverWithForm() {\n return (\n \n \n \n \n \n \n \n Dimensions\n \n Set the dimensions for the layer.\n \n \n \n \n \n Width\n \n \n \n \n \n Height\n \n \n \n \n \n \n \n )\n}\n\nfunction PopoverAlignments() {\n return (\n \n
\n \n \n \n \n \n Aligned to start\n \n \n \n \n \n \n \n Aligned to center\n \n \n \n \n \n \n \n Aligned to end\n \n \n
\n
\n )\n}\n\nfunction PopoverInDialog() {\n return (\n \n \n \n \n \n \n \n Popover Example\n \n Click the button below to see the popover.\n \n \n \n \n \n \n \n \n Popover in Dialog\n \n This popover appears inside a dialog. Click the button to open\n it.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], "type": "registry:example" }