Search documentation

Search components and pages

Date Picker

A date picker built from a popover and calendar.

01

Installation

Add the date picker component with the shadcn CLI.

bash
npx shadcn@latest add https://swiss.ui.unsanity.ai/r/date-picker.json
02

Usage

tsx
import { DatePicker } from "@/components/ui/date-picker"
03

Examples

Default

import { DatePicker } from "@/components/ui/date-picker"

<DatePicker placeholder="Pick a date" />