{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "calendar-13", "type": "registry:block", "author": "shadcn (https://ui.shadcn.com)", "description": "With Month and Year Dropdown", "registryDependencies": [ "calendar", "label", "select" ], "files": [ { "path": "blocks/calendar-13.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { Calendar } from \"@/registry/new-york/ui/calendar\"\nimport { Label } from \"@/registry/new-york/ui/label\"\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/new-york/ui/select\"\n\nexport default function Calendar13() {\n const [dropdown, setDropdown] =\n React.useState[\"captionLayout\"]>(\n \"dropdown\"\n )\n const [date, setDate] = React.useState(\n new Date(2025, 5, 12)\n )\n\n return (\n
\n \n
\n \n \n setDropdown(\n value as React.ComponentProps[\"captionLayout\"]\n )\n }\n >\n \n \n \n \n Month and Year\n Month Only\n Year Only\n \n \n
\n
\n )\n}\n", "type": "registry:component", "target": "" } ], "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" ] }