Calendar23() — ui Function Reference
Architecture documentation for the Calendar23() function in calendar-23.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 753c9bf5_62a6_8064_7fe6_7553982bd89e["Calendar23()"] 0e803618_7aeb_ac6e_a9f0_84f29b7e9a01["calendar-23.tsx"] 753c9bf5_62a6_8064_7fe6_7553982bd89e -->|defined in| 0e803618_7aeb_ac6e_a9f0_84f29b7e9a01 style 753c9bf5_62a6_8064_7fe6_7553982bd89e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/__registry__/default/blocks/calendar-23.tsx lines 16–50
export default function Calendar23() {
const [range, setRange] = React.useState<DateRange | undefined>(undefined)
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
? `${range.from.toLocaleDateString()} - ${range.to.toLocaleDateString()}`
: "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 Calendar23() do?
Calendar23() is a function in the ui codebase, defined in deprecated/www/__registry__/default/blocks/calendar-23.tsx.
Where is Calendar23() defined?
Calendar23() is defined in deprecated/www/__registry__/default/blocks/calendar-23.tsx at line 16.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free