Calendar10() — ui Function Reference
Architecture documentation for the Calendar10() function in calendar-10.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD e61cdc78_ce33_0fbb_6ab5_b69a8b532d54["Calendar10()"] 14840905_2d57_099c_917c_3f3bb9a4b2e7["calendar-10.tsx"] e61cdc78_ce33_0fbb_6ab5_b69a8b532d54 -->|defined in| 14840905_2d57_099c_917c_3f3bb9a4b2e7 style e61cdc78_ce33_0fbb_6ab5_b69a8b532d54 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/blocks/calendar-10.tsx lines 15–50
export default function Calendar10() {
const [date, setDate] = React.useState<Date | undefined>(
new Date(2025, 5, 12)
)
const [month, setMonth] = React.useState<Date | undefined>(new Date())
return (
<Card>
<CardHeader className="relative">
<CardTitle>Appointment</CardTitle>
<CardDescription>Find a date</CardDescription>
<Button
size="sm"
variant="outline"
className="absolute right-4 top-4"
onClick={() => {
setMonth(new Date())
setDate(new Date())
}}
>
Today
</Button>
</CardHeader>
<CardContent>
<Calendar
mode="single"
month={month}
onMonthChange={setMonth}
selected={date}
onSelect={setDate}
className="bg-transparent p-0"
/>
</CardContent>
</Card>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does Calendar10() do?
Calendar10() is a function in the ui codebase, defined in deprecated/www/registry/new-york/blocks/calendar-10.tsx.
Where is Calendar10() defined?
Calendar10() is defined in deprecated/www/registry/new-york/blocks/calendar-10.tsx at line 15.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free