Date Picker
Date picker built on the native date input, styled to match the rest of your form fields. Returns ISO date strings and supports disabled and labelled states.
src/registry/ui/date-picker.tsx/r/date-picker.json
Installation#
bash
npx shadcn@latest add @minidev/date-picker
MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/date-picker.json
Usage#
tsx
import { DatePicker } from "@/components/ui/date-picker"
export function Example() {
return (
<DatePicker id="d1" aria-label="Date" />
)
}
API reference#
| Prop | Type | Default |
|---|---|---|
value | string | - |
onChange | (value: string) => void | - |
disabled | boolean | - |
className | string | - |
id | string | - |
aria-label | string | - |
Dependencies#
npm
React only
Built from
Examples#
Related forms components#
AutocompleteText input that filters string options as you type, using ARIA combobox and listbox roles. Works controlled or uncontrolled and lists up to eight matches.Calendar MonthMonth calendar grid with weekday headers and clickable day cells that highlight the selected date. A simple Tailwind base for date views and schedulers.Character CountLive React character counter that shows the current count against a limit and turns red when it goes over. Announces changes politely to screen readers.Checkbox GroupVertical wrapper that groups related checkboxes under role group with even spacing. Use it with Checkbox and labels for multi select settings.CheckboxShadcn style checkbox on Base UI with an animated check, indeterminate state, invalid and disabled styles, and an enlarged hit area for touch.Chip FilterSingle select filter chips in React that behave as a radio group, with an accent ring on the active chip. Good for quick filters above lists and tables.
All form components