React Native · Components
DatePicker
Date picker: tapping the box opens a calendar in a bottom panel on a phone and below the box on a tablet.
Live example
The preview runs in the browser with the web component; the native component takes the same props and looks the same on iOS and Android.
Preview
Code
Events
- Events appear here when you interact with the preview.
Birth date: future disabled, long display
Appointment: with time, 15-minute steps, Sundays disabled
We're closed on Sundays.
Preview
Code
Events
- Events appear here when you interact with the preview.
Hotel: booked days disabled, 2 to 14 nights
Preview
Code
Events
- Events appear here when you interact with the preview.
Preview
Code
Events
- Events appear here when you interact with the preview.
Card expiry date, a month grid embedded in the page and a form
Preview
Code
Events
- Events appear here when you interact with the preview.
Import
DatePicker
componentDate picker: tapping the box opens a calendar in a bottom panel on a phone and below the box on a tablet. It closes when a day is selected. The value has the same format as on web (ISO day, "2026-10-28"); the box shows it in the language's format.
Examples
DateRangePicker
componentDate range picker: the first tap selects the start, the second the end; the panel closes when the end is selected. The value is { start, end } ISO days.
Examples
MonthPicker
componentMonth picker: for fields that do not need a day, like a billing period or a card expiry date. The panel shows the months of the year in a 3×4 grid; tapping the year opens a year grid. The value has the same format as on web ("2026-10").
Examples
YearPicker
componentYear picker: pages of 12 years in the panel. The value has the same format as on web ("2026").
Examples
TimePicker
componentTime picker: tapping the box opens hour and minute columns (a bottom panel on a phone, below the box on a tablet). It closes when a minute is picked. The value has the same format as on web ("14:30"); times outside min/max are disabled.
Examples
DatePickerProps
interfaceProps of DatePicker (same names as on web).
Extends: FieldProps, Pick<CalendarBaseProps, "min" | "max" | "isDateDisabled" | "weekStartsOn" | "showOutsideDays" | "fixedWeeks" | "marks">
| Name | Type | Default | Description |
|---|---|---|---|
value? | DateInput | Selected day (controlled); ISO ("2026-10-28") or a Date. "" for empty. | |
defaultValue? | DateInput | Initial day. | |
onValueChange? | (value: string, date: Date | undefined) => void | ISO day and Date when the selection changes. | |
todayButton? | boolean | true | "Today" button below the calendar. |
format? | Intl.DateTimeFormatOptions | { day: "numeric", month: "long", year: "numeric" } | Format of the date in the box. |
placeholder? | string | Text shown when nothing is selected. | |
clearable? | boolean | true | Clear button. |
open? | boolean | Whether the calendar is open in controlled use. | |
onOpenChange? | (open: boolean) => void | When the calendar opens or closes. | |
variant? | FieldVariant | "outline" | Field appearance. |
aria-label? | string | Screen reader name; give it when there is no visible label. | |
style? | StyleProp<ViewStyle> | Container style. |
DateRangePickerProps
interfaceProps of DateRangePicker.
Extends: FieldProps, Pick<CalendarBaseProps, "min" | "max" | "isDateDisabled" | "weekStartsOn" | "showOutsideDays" | "fixedWeeks" | "marks">
| Name | Type | Default | Description |
|---|---|---|---|
value? | DateRangeInput | Selected range (controlled). | |
defaultValue? | DateRangeInput | Initial range. | |
onValueChange? | (range: DateRange) => void | When the selection changes; end is empty until the end is selected. | |
minDays? | number | Minimum number of days in the range (both ends included). | |
maxDays? | number | Maximum number of days in the range. | |
format? | Intl.DateTimeFormatOptions | { day: "numeric", month: "long", year: "numeric" } | Format of the date in the box. |
placeholder? | string | Text shown when nothing is selected. | |
clearable? | boolean | true | Clear button. |
open? | boolean | Whether the calendar is open in controlled use. | |
onOpenChange? | (open: boolean) => void | When the calendar opens or closes. | |
variant? | FieldVariant | "outline" | Field appearance. |
aria-label? | string | Screen reader name; give it when there is no visible label. | |
style? | StyleProp<ViewStyle> | Container style. |
MonthPreset
typePreset options in the MonthPicker panel (same as web).
MonthPickerProps
interfaceProps of MonthPicker (same names as on web).
Extends: FieldProps
| Name | Type | Default | Description |
|---|---|---|---|
value? | DateInput | Selected month: "2026-10", a date string or a Date; "" for none. | |
defaultValue? | DateInput | Initial month in uncontrolled use. | |
onValueChange? | (value: string, date: Date | undefined) => void | When the selection changes, with "YYYY-MM" and the first day of the month ("", undefined when cleared). | |
min? | DateInput | Earliest selectable month. | |
max? | DateInput | Latest selectable month. | |
isMonthDisabled? | (date: Date) => boolean | Function for months that cannot be selected (with the first day of the month). | |
monthFormat? | "short" | "long" | "numeric" | "short" | Format of the month names in the grid. |
format? | Intl.DateTimeFormatOptions | { month: "long", year: "numeric" } | Display format in the box. |
presets? | readonly MonthPreset[] | Preset options: "thisMonth", "lastMonth" or { label, value }. | |
currentButton? | boolean | true` when there are no `presets | "This month" button at the bottom of the panel. |
placeholder? | string | Text shown when nothing is selected. | |
clearable? | boolean | true | Clear button. |
open? | boolean | Whether the calendar is open in controlled use. | |
onOpenChange? | (open: boolean) => void | When the calendar opens or closes. | |
variant? | FieldVariant | "outline" | Field appearance. |
aria-label? | string | Screen reader name; give it when there is no visible label. | |
style? | StyleProp<ViewStyle> | Container style. |
YearPickerProps
interfaceProps of YearPicker (same names as on web).
Extends: FieldProps
| Name | Type | Default | Description |
|---|---|---|---|
value? | YearInput | Selected year: 2026, "2026" or a Date; "" for none. | |
defaultValue? | YearInput | Initial year in uncontrolled use. | |
onValueChange? | (value: string, year: number | undefined) => void | When the selection changes, with "YYYY" and the year number ("", undefined when cleared). | |
min? | YearInput | Earliest selectable year. | |
max? | YearInput | Latest selectable year. | |
isYearDisabled? | (year: number) => boolean | Function for years that cannot be selected. | |
currentButton? | boolean | true | "This year" button at the bottom of the panel. |
placeholder? | string | Text shown when nothing is selected. | |
clearable? | boolean | true | Clear button. |
open? | boolean | Whether the calendar is open in controlled use. | |
onOpenChange? | (open: boolean) => void | When the calendar opens or closes. | |
variant? | FieldVariant | "outline" | Field appearance. |
aria-label? | string | Screen reader name; give it when there is no visible label. | |
style? | StyleProp<ViewStyle> | Container style. |
TimePickerProps
interfaceProps of TimePicker (same names as on web).
Extends: FieldProps
| Name | Type | Default | Description |
|---|---|---|---|
value? | string | Selected time in controlled use ("14:30"); "" for none. | |
defaultValue? | string | Initial time in uncontrolled use. | |
onValueChange? | (value: string) => void | Called with "HH:mm" when the time changes ("" when cleared). | |
min? | string | Earliest selectable time ("09:00"). | |
max? | string | Latest selectable time ("18:00"). | |
minuteStep? | number | 5 | Step of the minute list (e.g. 15 → 00, 15, 30, 45). |
nowButton? | boolean | true | "Now" button in the panel. |
placeholder? | string | Text shown when nothing is selected. | |
clearable? | boolean | true | Clear button. |
open? | boolean | Whether the calendar is open in controlled use. | |
onOpenChange? | (open: boolean) => void | When the calendar opens or closes. | |
variant? | FieldVariant | "outline" | Field appearance. |
aria-label? | string | Screen reader name; give it when there is no visible label. | |
style? | StyleProp<ViewStyle> | Container style. |