Calendar31() — ui Function Reference
Architecture documentation for the Calendar31() function in calendar-31.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 3d339626_4442_162b_ec59_c6a7e519dd63["Calendar31()"] f7e26799_0029_1eb9_54a7_ec15ee53fb3d["calendar-31.tsx"] 3d339626_4442_162b_ec59_c6a7e519dd63 -->|defined in| f7e26799_0029_1eb9_54a7_ec15ee53fb3d style 3d339626_4442_162b_ec59_c6a7e519dd63 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/blocks/calendar-31.tsx lines 29–80
export default function Calendar31() {
const [date, setDate] = React.useState<Date | undefined>(
new Date(2025, 5, 12)
)
return (
<Card className="w-fit py-4">
<CardContent className="px-4">
<Calendar
mode="single"
selected={date}
onSelect={setDate}
className="bg-transparent p-0"
required
/>
</CardContent>
<CardFooter className="flex flex-col items-start gap-3 border-t px-4 pb-0 pt-4">
<div className="flex w-full items-center justify-between px-1">
<div className="text-sm font-medium">
{date?.toLocaleDateString("en-US", {
day: "numeric",
month: "long",
year: "numeric",
})}
</div>
<Button
variant="ghost"
size="icon"
className="h-6 w-6"
title="Add Event"
>
<PlusIcon />
<span className="sr-only">Add Event</span>
</Button>
</div>
<div className="flex w-full flex-col gap-2">
{events.map((event) => (
<div
key={event.title}
className="bg-muted after:bg-primary/70 relative rounded-md p-2 pl-6 text-sm after:absolute after:inset-y-2 after:left-2 after:w-1 after:rounded-full"
>
<div className="font-medium">{event.title}</div>
<div className="text-muted-foreground text-xs">
{formatDateRange(new Date(event.from), new Date(event.to))}
</div>
</div>
))}
</div>
</CardFooter>
</Card>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does Calendar31() do?
Calendar31() is a function in the ui codebase, defined in deprecated/www/registry/new-york/blocks/calendar-31.tsx.
Where is Calendar31() defined?
Calendar31() is defined in deprecated/www/registry/new-york/blocks/calendar-31.tsx at line 29.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free