date-picker-time.tsx — ui Source File
Architecture documentation for date-picker-time.tsx, a tsx file in the ui codebase. 8 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 78e7d713_3e67_fc16_2769_d2bbca8bdc37["date-picker-time.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 78e7d713_3e67_fc16_2769_d2bbca8bdc37 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 4b1d2128_46d9_46f0_b915_b6e1925b7876["button"] 78e7d713_3e67_fc16_2769_d2bbca8bdc37 --> 4b1d2128_46d9_46f0_b915_b6e1925b7876 4bae96d1_8974_035f_9042_62ec299030b9["calendar"] 78e7d713_3e67_fc16_2769_d2bbca8bdc37 --> 4bae96d1_8974_035f_9042_62ec299030b9 b5f68436_cf6b_fba3_fb29_abf27fd13442["field"] 78e7d713_3e67_fc16_2769_d2bbca8bdc37 --> b5f68436_cf6b_fba3_fb29_abf27fd13442 9af00736_7b63_3c3c_87d0_68c5200c5d80["input"] 78e7d713_3e67_fc16_2769_d2bbca8bdc37 --> 9af00736_7b63_3c3c_87d0_68c5200c5d80 97b1d83c_62f2_f7a6_4edb_030a627d9a9d["popover"] 78e7d713_3e67_fc16_2769_d2bbca8bdc37 --> 97b1d83c_62f2_f7a6_4edb_030a627d9a9d f9e8c1ea_9de4_3e04_ca27_b15cada2e81e["date-fns"] 78e7d713_3e67_fc16_2769_d2bbca8bdc37 --> f9e8c1ea_9de4_3e04_ca27_b15cada2e81e d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 78e7d713_3e67_fc16_2769_d2bbca8bdc37 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 style 78e7d713_3e67_fc16_2769_d2bbca8bdc37 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Button } from "@/examples/radix/ui/button"
import { Calendar } from "@/examples/radix/ui/calendar"
import { Field, FieldGroup, FieldLabel } from "@/examples/radix/ui/field"
import { Input } from "@/examples/radix/ui/input"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/examples/radix/ui/popover"
import { format } from "date-fns"
import { ChevronDownIcon } from "lucide-react"
export function DatePickerTime() {
const [open, setOpen] = React.useState(false)
const [date, setDate] = React.useState<Date | undefined>(undefined)
return (
<FieldGroup className="mx-auto max-w-xs flex-row">
<Field>
<FieldLabel htmlFor="date-picker-optional">Date</FieldLabel>
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button
variant="outline"
id="date-picker-optional"
className="w-32 justify-between font-normal"
>
{date ? format(date, "PPP") : "Select date"}
<ChevronDownIcon />
</Button>
</PopoverTrigger>
<PopoverContent className="w-auto overflow-hidden p-0" align="start">
<Calendar
mode="single"
selected={date}
captionLayout="dropdown"
defaultMonth={date}
onSelect={(date) => {
setDate(date)
setOpen(false)
}}
/>
</PopoverContent>
</Popover>
</Field>
<Field className="w-32">
<FieldLabel htmlFor="time-picker-optional">Time</FieldLabel>
<Input
type="time"
id="time-picker-optional"
step="1"
defaultValue="10:30:00"
className="bg-background appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
/>
</Field>
</FieldGroup>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- calendar
- date-fns
- field
- input
- lucide-react
- popover
- react
Source
Frequently Asked Questions
What does date-picker-time.tsx do?
date-picker-time.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in date-picker-time.tsx?
date-picker-time.tsx defines 1 function(s): DatePickerTime.
What does date-picker-time.tsx depend on?
date-picker-time.tsx imports 8 module(s): button, calendar, date-fns, field, input, lucide-react, popover, react.
Where is date-picker-time.tsx in the architecture?
date-picker-time.tsx is located at apps/v4/examples/radix/date-picker-time.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free