DataPickerWithDropdowns() — ui Function Reference
Architecture documentation for the DataPickerWithDropdowns() function in data-picker-with-dropdowns.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 33ff44ef_5640_6947_c179_f70ceee75ef2["DataPickerWithDropdowns()"] cd311393_e4c3_d19a_4346_69199c7d0087["data-picker-with-dropdowns.tsx"] 33ff44ef_5640_6947_c179_f70ceee75ef2 -->|defined in| cd311393_e4c3_d19a_4346_69199c7d0087 style 33ff44ef_5640_6947_c179_f70ceee75ef2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/data-picker-with-dropdowns.tsx lines 15–58
export function DataPickerWithDropdowns() {
const [date, setDate] = React.useState<Date>()
const [open, setOpen] = React.useState(false)
return (
<Field className="mx-auto w-72">
<Popover open={open} onOpenChange={setOpen}>
<FieldLabel htmlFor="date-picker-with-dropdowns-desktop">
Date
</FieldLabel>
<PopoverTrigger
render={
<Button
variant="outline"
id="date-picker-with-dropdowns-desktop"
className="justify-start px-2.5 font-normal"
/>
}
>
<ChevronDownIcon className="ml-auto" />
{date ? format(date, "PPP") : <span>Pick a date</span>}
</PopoverTrigger>
<PopoverContent className="w-auto p-0" align="start">
<Calendar
mode="single"
selected={date}
onSelect={setDate}
captionLayout="dropdown"
/>
<div className="flex gap-2 border-t p-2">
<Button
variant="outline"
size="sm"
className="w-full"
onClick={() => setOpen(false)}
>
Done
</Button>
</div>
</PopoverContent>
</Popover>
</Field>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does DataPickerWithDropdowns() do?
DataPickerWithDropdowns() is a function in the ui codebase, defined in apps/v4/examples/base/data-picker-with-dropdowns.tsx.
Where is DataPickerWithDropdowns() defined?
DataPickerWithDropdowns() is defined in apps/v4/examples/base/data-picker-with-dropdowns.tsx at line 15.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free