{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "calendar-22", "type": "registry:block", "description": "Date picker", "registryDependencies": [ "calendar", "popover", "button", "label" ], "files": [ { "path": "registry/new-york-v4/blocks/calendar-22.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ChevronDownIcon } from \"lucide-react\"\n\nimport { Button } from \"@/registry/new-york-v4/ui/button\"\nimport { Calendar } from \"@/registry/new-york-v4/ui/calendar\"\nimport { Label } from \"@/registry/new-york-v4/ui/label\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/new-york-v4/ui/popover\"\n\nexport default function Calendar22() {\n const [open, setOpen] = React.useState(false)\n const [date, setDate] = React.useState(undefined)\n\n return (\n
\n \n \n \n \n {date ? date.toLocaleDateString() : \"Select date\"}\n \n \n \n \n {\n setDate(date)\n setOpen(false)\n }}\n />\n \n \n
\n )\n}\n", "type": "registry:component" } ], "meta": { "iframeHeight": "600px", "container": "w-full bg-surface min-h-svh flex px-6 py-12 items-start md:pt-20 justify-center min-w-0 xl:py-24", "mobile": "component" }, "categories": [ "calendar", "date" ] }