Calendar21() — ui Function Reference
Architecture documentation for the Calendar21() function in calendar-21.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD b044ce45_168c_0a15_ef88_5a8a31c4f16b["Calendar21()"] c872f88b_8766_0d8e_7396_6805a117894f["calendar-21.tsx"] b044ce45_168c_0a15_ef88_5a8a31c4f16b -->|defined in| c872f88b_8766_0d8e_7396_6805a117894f style b044ce45_168c_0a15_ef88_5a8a31c4f16b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/blocks/calendar-21.tsx lines 8–42
export default function Calendar21() {
const [range, setRange] = React.useState<DateRange | undefined>({
from: new Date(2025, 5, 12),
to: new Date(2025, 5, 17),
})
return (
<Calendar
mode="range"
defaultMonth={range?.from}
selected={range}
onSelect={setRange}
numberOfMonths={1}
captionLayout="dropdown"
className="rounded-lg border shadow-sm [--cell-size:2.75rem] md:[--cell-size:3rem]"
formatters={{
formatMonthDropdown: (date) => {
return date.toLocaleString("default", { month: "long" })
},
}}
components={{
DayButton: ({ children, modifiers, day, ...props }) => {
const isWeekend = day.date.getDay() === 0 || day.date.getDay() === 6
return (
<CalendarDayButton day={day} modifiers={modifiers} {...props}>
{children}
{!modifiers.outside && <span>{isWeekend ? "$220" : "$100"}</span>}
</CalendarDayButton>
)
},
}}
/>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does Calendar21() do?
Calendar21() is a function in the ui codebase, defined in deprecated/www/registry/default/blocks/calendar-21.tsx.
Where is Calendar21() defined?
Calendar21() is defined in deprecated/www/registry/default/blocks/calendar-21.tsx at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free