{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "popover-example", "title": "Popover", "registryDependencies": [ "button", "dialog", "field", "input", "popover", "example" ], "files": [ { "path": "registry/base-maia/examples/popover-example.tsx", "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-maia/components/example\"\nimport { Button } from \"@/registry/base-maia/ui/button\"\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/base-maia/ui/dialog\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/base-maia/ui/field\"\nimport { Input } from \"@/registry/base-maia/ui/input\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/registry/base-maia/ui/popover\"\n\nexport default function PopoverExample() {\n return (\n \n \n \n \n \n \n \n )\n}\n\nfunction PopoverBasic() {\n return (\n \n \n }>\n Open Popover\n \n \n \n Dimensions\n \n Set the dimensions for the layer.\n \n \n \n \n \n )\n}\n\nfunction PopoverSides() {\n return (\n \n \n \n {([\"inline-start\", \"left\", \"top\"] as const).map((side) => (\n \n \n }\n >\n {side.replace(\"-\", \" \")}\n \n \n Popover on {side.replace(\"-\", \" \")}\n \n \n ))}\n \n \n {([\"bottom\", \"right\", \"inline-end\"] as const).map((side) => (\n \n \n }\n >\n {side.replace(\"-\", \" \")}\n \n \n Popover on {side.replace(\"-\", \" \")}\n \n \n ))}\n \n \n \n )\n}\n\nfunction PopoverWithForm() {\n return (\n \n \n }>\n Open Popover\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 Start\n \n \n Aligned to start\n \n \n \n }>\n Center\n \n \n Aligned to center\n \n \n \n }>\n End\n \n \n Aligned to end\n \n \n \n \n )\n}\n\nfunction PopoverInDialog() {\n return (\n \n \n }>\n Open Dialog\n \n \n \n Popover Example\n \n Click the button below to see the popover.\n \n \n \n }\n >\n Open Popover\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" }
Popover on {side.replace(\"-\", \" \")}