Home / Function/ DatePicker() — ui Function Reference

DatePicker() — ui Function Reference

Architecture documentation for the DatePicker() function in date-picker.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  984680d8_5473_299b_7167_6de67f202252["DatePicker()"]
  18b56ddb_29c5_a14e_dc1d_d46911d1bcb2["date-picker.tsx"]
  984680d8_5473_299b_7167_6de67f202252 -->|defined in| 18b56ddb_29c5_a14e_dc1d_d46911d1bcb2
  style 984680d8_5473_299b_7167_6de67f202252 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/blocks/sidebar-12/components/date-picker.tsx lines 9–26

export function DatePicker() {
  const [date, setDate] = React.useState<Date | undefined>(
    new Date(new Date().getFullYear(), new Date().getMonth(), 12)
  )
  return (
    <SidebarGroup className="px-0">
      <SidebarGroupContent>
        <Calendar
          mode="single"
          selected={date}
          onSelect={setDate}
          captionLayout="dropdown"
          className="bg-transparent [--cell-size:2.1rem]"
        />
      </SidebarGroupContent>
    </SidebarGroup>
  )
}

Subdomains

Frequently Asked Questions

What does DatePicker() do?
DatePicker() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/blocks/sidebar-12/components/date-picker.tsx.
Where is DatePicker() defined?
DatePicker() is defined in apps/v4/registry/bases/radix/blocks/sidebar-12/components/date-picker.tsx at line 9.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free