DatePickerDemo() — ui Function Reference
Architecture documentation for the DatePickerDemo() function in date-picker-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ce081744_f2f1_d1dd_95e5_2fc0588573db["DatePickerDemo()"] 1bdce3fe_bc46_6a78_5c1b_141f7d4daa7e["date-picker-demo.tsx"] ce081744_f2f1_d1dd_95e5_2fc0588573db -->|defined in| 1bdce3fe_bc46_6a78_5c1b_141f7d4daa7e style ce081744_f2f1_d1dd_95e5_2fc0588573db fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/internal/sink/components/date-picker-demo.tsx lines 16–43
export function DatePickerDemo() {
const [date, setDate] = React.useState<Date>()
return (
<Popover>
<PopoverTrigger asChild>
<Button
variant={"outline"}
className={cn(
"w-[240px] justify-start text-left font-normal",
!date && "text-muted-foreground"
)}
>
<CalendarIcon />
{date ? format(date, "PPP") : <span>Pick a date</span>}
</Button>
</PopoverTrigger>
<PopoverContent className="w-auto p-0" align="start">
<Calendar
mode="single"
selected={date}
onSelect={setDate}
initialFocus
/>
</PopoverContent>
</Popover>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does DatePickerDemo() do?
DatePickerDemo() is a function in the ui codebase, defined in deprecated/www/registry/default/internal/sink/components/date-picker-demo.tsx.
Where is DatePickerDemo() defined?
DatePickerDemo() is defined in deprecated/www/registry/default/internal/sink/components/date-picker-demo.tsx at line 16.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free