Date Picker

A date picker combines a date field and a calendar popover to allow users to select a date.

<DatePicker aria-label="Meeting date">
  <DatePickerInput />
  <DatePickerContent>
    <Calendar />
  </DatePickerContent>
</DatePicker>

Installation

npx shadcn@latest add @dotui/date-picker

Usage

Use date pickers to allow users to select a date using a field and a calendar popover.

import { Calendar } from "@/components/ui/calendar";
import { DatePicker, DatePickerContent, DatePickerInput } from "@/components/ui/date-picker";
import { Label } from "@/components/ui/field";
<DatePicker>
  <Label>Date</Label>
  <DatePickerInput />
  <DatePickerContent>
    <Calendar />
  </DatePickerContent>
</DatePicker>

API Reference

DatePicker

Missing description.

PropType
"sm" | "md" | "lg"
boolean
boolean
union
string
string
ReactNode | function

DatePickerContent

Missing description.

PropType
ReactNode | function
Type
Type | null
Omit<PopoverProps, "children" | CommonProps>

Last updated on 1/13/2026

Built with passion by @mehdibha.