{
  "name": "calendar-constraints-demo",
  "registryDependencies": [
    "calender"
  ],
  "files": [
    {
      "path": "examples/calendar-constraints-demo.tsx",
      "content": "import { useState } from \"react\";\nimport { AnimatedCalendar } from \"@/registry/default/ui/calender\";\n\nexport default function CalendarConstraintsDemo() {\n  const [date, setDate] = useState<Date>();\n\n  // Disable weekends and past dates\n  const today = new Date();\n  today.setHours(0, 0, 0, 0);\n\n  return (\n    <div className=\"flex flex-col gap-3\">\n      <h3 className=\"font-medium text-sm\">Calendar with Constraints</h3>\n      <p className=\"text-muted-foreground text-xs\">\n        Weekends and past dates are disabled\n      </p>\n      <AnimatedCalendar\n        mode=\"single\"\n        value={date}\n        onChange={setDate}\n        minDate={today}\n        disabledDaysOfWeek={[0, 6]} // Disable Sunday (0) and Saturday (6)\n        placeholder=\"Select a weekday\"\n      />\n      {date && (\n        <p className=\"text-muted-foreground text-sm\">\n          Selected: {date.toLocaleDateString()}\n        </p>\n      )}\n    </div>\n  );\n}\n",
      "type": "registry:example",
      "target": ""
    }
  ],
  "type": "registry:example"
}