{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "calendar14",
  "title": "Calendar",
  "description": "Calendar built with shadcn/ui.",
  "dependencies": [
    "date-fns",
    "lucide-react@0"
  ],
  "registryDependencies": [
    "button",
    "calendar",
    "label",
    "popover"
  ],
  "files": [
    {
      "path": "contents/components/calendar/14/index.tsx",
      "content": "\"use client\";\n\nimport { format } from \"date-fns\";\nimport { CalendarIcon } from \"lucide-react\";\nimport { useId, useState } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Button } from \"@/components/ui/button\";\nimport { Calendar } from \"@/components/ui/calendar\";\nimport { Label } from \"@/components/ui/label\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\n\nexport default function Component() {\n  const id = useId();\n  const [date, setDate] = useState<Date | undefined>();\n\n  return (\n    <div className=\"w-full max-w-xs *:not-first:mt-2\">\n      <Label htmlFor={id}>Date picker</Label>\n      <Popover>\n        <PopoverTrigger asChild>\n          <Button\n            className=\"group border-input bg-background hover:bg-background w-full justify-between px-3 font-normal outline-offset-0 outline-none focus-visible:outline-[3px]\"\n            id={id}\n            variant={\"outline\"}>\n            <span className={cn(\"truncate\", !date && \"text-muted-foreground\")}>\n              {date ? format(date, \"PPP\") : \"Pick a date\"}\n            </span>\n            <CalendarIcon\n              aria-hidden=\"true\"\n              className=\"text-muted-foreground/80 group-hover:text-foreground shrink-0 transition-colors\"\n              size={16}\n            />\n          </Button>\n        </PopoverTrigger>\n        <PopoverContent align=\"start\" className=\"w-auto p-2\">\n          <Calendar mode=\"single\" onSelect={setDate} selected={date} />\n        </PopoverContent>\n      </Popover>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/calendar14.tsx"
    }
  ],
  "type": "registry:component"
}