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
  0049f52f_28b7_8d95_e684_3023f6c5ccc4["DatePicker()"]
  81e04f3b_df3a_cc14_df1a_5d0fbb57afd3["date-picker.tsx"]
  0049f52f_28b7_8d95_e684_3023f6c5ccc4 -->|defined in| 81e04f3b_df3a_cc14_df1a_5d0fbb57afd3
  style 0049f52f_28b7_8d95_e684_3023f6c5ccc4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/blocks/sidebar-15/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/base/blocks/sidebar-15/components/date-picker.tsx.
Where is DatePicker() defined?
DatePicker() is defined in apps/v4/registry/bases/base/blocks/sidebar-15/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