uibrik

Date Picker

Preview

Customize

Start day15
Start month8
Years before40
Years after19

Usage

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

<DatePicker />

Installation

npx shadcn@latest add https://uibrik.com/r/date-picker.json
Adds the files to components/uibrik/date-picker and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/date-picker.

Props

DatePicker
defaultDay
Type number
15
Starting day of the month.
defaultMonth
Type number
8
Starting month, 0 = January.
yearsBefore
Type number
40
Years listed before the current year.
yearsAfter
Type number
19
Years listed after the current year.
infinite
Type boolean
true
Day and month wheels loop.
onChange
Type (date: Date) => void
–
Called with the picked date when a wheel settles.