{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "calendar3",
  "title": "Calendar",
  "description": "A calendar component that allows users to select a date or a range of dates.",
  "files": [
    {
      "path": "contents/components/calendar/3/index.tsx",
      "content": "import { addDays } from \"date-fns\";\n\nimport { Calendar } from \"@/components/ui/calendar\";\n\nexport default function Component() {\n  const today = new Date();\n\n  return (\n    <div>\n      <Calendar\n        className=\"rounded-md border p-2\"\n        disabled={[\n          { before: new Date() }, // Dates before today\n          new Date(), // Today\n          { dayOfWeek: [0, 6] }, // Weekends\n          {\n            from: addDays(today, 14), // 14th day from now\n            to: addDays(today, 16) // 16th day from now\n          },\n          {\n            from: addDays(today, 23), // 23th day from now\n            to: addDays(today, 24) // 24th day from now\n          }\n        ]}\n        excludeDisabled\n        mode=\"range\"\n      />\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/calendar3.tsx"
    }
  ],
  "type": "registry:component"
}