{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "p-calendar-12",
  "description": "Calendar with week numbers",
  "registryDependencies": [
    "@coss/calendar"
  ],
  "files": [
    {
      "path": "registry/default/particles/p-calendar-12.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport type { WeekNumberProps } from \"react-day-picker\";\nimport { Calendar } from \"@/registry/default/ui/calendar\";\n\nexport default function Particle() {\n  const [date, setDate] = useState<Date | undefined>(new Date());\n\n  return (\n    <Calendar\n      components={{\n        WeekNumber: ({ week, ...props }: WeekNumberProps) => {\n          return (\n            <th {...props}>\n              <span className=\"inline-flex size-(--cell-size) items-center justify-center\">\n                {week.weekNumber}\n              </span>\n            </th>\n          );\n        },\n      }}\n      fixedWeeks\n      mode=\"single\"\n      onSelect={setDate}\n      selected={date}\n      showWeekNumber\n    />\n  );\n}\n",
      "type": "registry:block"
    }
  ],
  "categories": [
    "calendar"
  ],
  "type": "registry:block"
}