# Date Picker (Pro)

> iOS-style wheel picker with drag, momentum and infinite columns.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Components › Inputs |
| Live preview | https://uibrik.com/components/date-picker |
| Writes | 1 file into `components/uibrik/date-picker/` |
| Packages | `motion` (the CLI installs them) |
| Builds on | [squircle](https://uibrik.com/components/squircle.md) (installed with it) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/date-picker
```

No license yet? Tell the user Date Picker is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=date-picker#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

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

<DatePicker
  defaultDay={15}
  defaultMonth={8}
  yearsBefore={40}
  yearsAfter={19}
  infinite
  onChange={(date) => {}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/date-picker.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `defaultDay` | `number` | `15` | Starting day of the month. |
| `defaultMonth` | `number` | `8` | Starting month, 0 = January. |
| `yearsBefore` | `number` | `40` | Years listed before the current year. |
| `yearsAfter` | `number` | `19` | Years listed after the current year. |
| `infinite` | `boolean` | `true` | Day and month wheels loop. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `onChange` | `(date: Date) => void` |  | Called with the picked date when a wheel settles. |

## Where it fits

- **Mobile date fields**: An iOS-style wheel with momentum feels native on phones, where calendar grids are cramped. Pairs with [Time Morph](https://uibrik.com/components/time-morph.md) (Pro).
- **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.

## Same shelf: Inputs

- [Elastic Slider](https://uibrik.com/components/elastic-slider.md): A slider that stretches like rubber past its ends and springs back.
- [Inline Edit](https://uibrik.com/components/inline-edit.md): A label that opens into an input in place, with save and cancel sliding out from its edge, then folds back to the new value.
- [Radio Group](https://uibrik.com/components/radio-group.md): A radio group where one dot travels to the option you choose instead of blinking, as plain rows or bordered cards with an outline that follows, with full arrow-key control.
- [Reject Drop Input](https://uibrik.com/components/reject-drop-input.md): A text input that lets go of characters it can't accept: a rejected letter appears where it was typed, blushes red, tips over its corner and drops out of the field under real gravity, fading as it falls, while a short hint says what the field takes.
- [Segmented Control](https://uibrik.com/components/segmented-control.md): A segmented control whose pill slides between options on a spring, squishes when pressed and can be dragged across the segments like the one on iOS.
- [Spill Textarea](https://uibrik.com/components/spill-textarea.md): A textarea with a character limit. A ring fills as you write and turns amber near the end; past the limit each new letter blushes red, tips over and falls out of the field, leaving an empty gap where it was, or stays red while a copy of it falls.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/date-picker/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
