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#

DatePicker props
PropTypeDefault
valuestring-
onChange(value: string) => void-
disabledboolean-
classNamestring-
idstring-
aria-labelstring-

Dependencies#

npm

React only

Built from

Examples#

All form components

Learn more