calendar-21.tsx — ui Source File
Architecture documentation for calendar-21.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 482a8ab3_dd8c_36e8_324d_498bdb97d46a["calendar-21.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 482a8ab3_dd8c_36e8_324d_498bdb97d46a --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 bfc8708c_7488_3983_8998_32b793781735["react-day-picker"] 482a8ab3_dd8c_36e8_324d_498bdb97d46a --> bfc8708c_7488_3983_8998_32b793781735 9296b496_7dcb_ebca_2184_14782807983b["calendar"] 482a8ab3_dd8c_36e8_324d_498bdb97d46a --> 9296b496_7dcb_ebca_2184_14782807983b style 482a8ab3_dd8c_36e8_324d_498bdb97d46a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { DateRange } from "react-day-picker"
import { Calendar, CalendarDayButton } from "@/registry/default/ui/calendar"
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
Functions
Dependencies
- calendar
- react
- react-day-picker
Source
Frequently Asked Questions
What does calendar-21.tsx do?
calendar-21.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in calendar-21.tsx?
calendar-21.tsx defines 1 function(s): Calendar21.
What does calendar-21.tsx depend on?
calendar-21.tsx imports 3 module(s): calendar, react, react-day-picker.
Where is calendar-21.tsx in the architecture?
calendar-21.tsx is located at deprecated/www/__registry__/default/blocks/calendar-21.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/__registry__/default/blocks).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free