Calendar25() — ui Function Reference
Architecture documentation for the Calendar25() function in calendar-25.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 3d16f156_5c6a_8138_f1c1_15ca40d91927["Calendar25()"] 1e8f8eb4_5a3e_cdbf_38e9_cdc63e423843["calendar-25.tsx"] 3d16f156_5c6a_8138_f1c1_15ca40d91927 -->|defined in| 1e8f8eb4_5a3e_cdbf_38e9_cdc63e423843 style 3d16f156_5c6a_8138_f1c1_15ca40d91927 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/__registry__/default/blocks/calendar-25.tsx lines 16–78
export default function Calendar25() {
const [open, setOpen] = React.useState(false)
const [date, setDate] = React.useState<Date | undefined>(undefined)
return (
<div className="flex flex-col gap-6">
<div className="flex flex-col gap-3">
<Label htmlFor="date" className="px-1">
Date
</Label>
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button
variant="outline"
id="date"
className="w-full justify-between font-normal"
>
{date ? date.toLocaleDateString() : "Select date"}
<ChevronDownIcon />
</Button>
</PopoverTrigger>
<PopoverContent className="w-auto overflow-hidden p-0" align="start">
<Calendar
mode="single"
selected={date}
captionLayout="dropdown"
onSelect={(date) => {
setDate(date)
setOpen(false)
}}
/>
</PopoverContent>
</Popover>
</div>
<div className="flex gap-4">
<div className="flex flex-col gap-3">
<Label htmlFor="time-from" className="px-1">
From
</Label>
<Input
type="time"
id="time-from"
step="1"
defaultValue="10:30:00"
className="bg-background appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
/>
</div>
<div className="flex flex-col gap-3">
<Label htmlFor="time-to" className="px-1">
To
</Label>
<Input
type="time"
id="time-to"
step="1"
defaultValue="12:30:00"
className="bg-background appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
/>
</div>
</div>
</div>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does Calendar25() do?
Calendar25() is a function in the ui codebase, defined in deprecated/www/__registry__/default/blocks/calendar-25.tsx.
Where is Calendar25() defined?
Calendar25() is defined in deprecated/www/__registry__/default/blocks/calendar-25.tsx at line 16.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free