Calendar30() — ui Function Reference
Architecture documentation for the Calendar30() function in calendar-30.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD bd60227d_7903_0003_8b23_4fef8642546e["Calendar30()"] c7b51e7d_53c1_1a8e_62b8_06968b10a1af["calendar-30.tsx"] bd60227d_7903_0003_8b23_4fef8642546e -->|defined in| c7b51e7d_53c1_1a8e_62b8_06968b10a1af style bd60227d_7903_0003_8b23_4fef8642546e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/__registry__/new-york/blocks/calendar-30.tsx lines 17–56
export default function Calendar30() {
const [range, setRange] = React.useState<DateRange | undefined>({
from: new Date(2025, 5, 4),
to: new Date(2025, 5, 10),
})
return (
<div className="flex flex-col gap-3">
<Label htmlFor="dates" className="px-1">
Select your stay
</Label>
<Popover>
<PopoverTrigger asChild>
<Button
variant="outline"
id="dates"
className="w-56 justify-between font-normal"
>
{range?.from && range?.to
? formatDateRange(range.from, range.to, {
includeTime: false,
})
: "Select date"}
<ChevronDownIcon />
</Button>
</PopoverTrigger>
<PopoverContent className="w-auto overflow-hidden p-0" align="start">
<Calendar
mode="range"
selected={range}
captionLayout="dropdown"
onSelect={(range) => {
setRange(range)
}}
/>
</PopoverContent>
</Popover>
</div>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does Calendar30() do?
Calendar30() is a function in the ui codebase, defined in deprecated/www/__registry__/new-york/blocks/calendar-30.tsx.
Where is Calendar30() defined?
Calendar30() is defined in deprecated/www/__registry__/new-york/blocks/calendar-30.tsx at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free