{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "calendar-21", "type": "registry:block", "author": "shadcn (https://ui.shadcn.com)", "description": "Custom days and formatters", "registryDependencies": [ "calendar" ], "files": [ { "path": "blocks/calendar-21.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { DateRange } from \"react-day-picker\"\n\nimport { Calendar, CalendarDayButton } from \"@/registry/new-york/ui/calendar\"\n\nexport default function Calendar21() {\n const [range, setRange] = React.useState({\n from: new Date(2025, 5, 12),\n to: new Date(2025, 5, 17),\n })\n\n return (\n {\n return date.toLocaleString(\"default\", { month: \"long\" })\n },\n }}\n components={{\n DayButton: ({ children, modifiers, day, ...props }) => {\n const isWeekend = day.date.getDay() === 0 || day.date.getDay() === 6\n\n return (\n \n {children}\n {!modifiers.outside && {isWeekend ? \"$220\" : \"$100\"}}\n \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 justify-center min-w-0", "mobile": "component" }, "categories": [ "calendar", "date" ] }