Black Friday: 30% off Pro

Get 30% off

Updated

Date Picker

Pro

Preview

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045

Customize

Start day15
Start month8
Years before40
Years after19

Installation

Pro

Date Picker is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/date-picker

Usage

import { DatePicker } from "@/components/uibrik/date-picker/date-picker";​<DatePicker  defaultDay={15}  defaultMonth={8}  yearsBefore={40}  yearsAfter={19}  infinite  onChange={(date) => {}}/>

Where to use Date Picker

  • Mobile date fields

    An iOS-style wheel with momentum feels native on phones, where calendar grids are cramped.

    Pairs with Time Morph

  • Date of birth

    Infinite columns make scrolling to a year decades away faster than paging a calendar.

  • Reminders and alarms

    Drag and momentum suit quick picks inside mobile web apps and PWAs.

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.