Applies to every preview on the site.
Installation
One command copies the source into your app — you own the code and can change anything.
After you add the file, import it like any local component:
import { TimePicker } from "@/components/ui/time-picker";Or add it with the CLI (installs any missing peers):
Usage
useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.Like this? There's a lot more in Pro Pro
12 full screens built from the same kit — install them the same way.
Props
| Prop | Type | Default |
|---|---|---|
| value Controlled 24-hour time. | { hours, minutes } | null | — |
| defaultValue Initial time when uncontrolled. | { hours, minutes } | null | null |
| onChange Called when a wheel settles, the clock hand snaps or a chip is picked (or on Set when staged). | (time: TimeValue) => void | — |
| variant 3D wheel drums, a grid of time slots, or an analog dial (24-hour mode adds an inner 13–00 ring). | 'wheel' | 'chips' | 'clock' | 'wheel' |
| presentation Render in place, or as a field that opens a bottom sheet. | 'inline' | 'sheet' | 'inline' |
| hour12 12-hour clock: an AM / PM column on the wheel, an AM / PM toggle on the clock. | boolean | from locale |
| minuteInterval Minute step for the wheel and the clock hand (the dial labels every 5); slot spacing for chips. | number | 1 (wheel, clock) · 30 (chips) |
| locale Used to pick 12h / 24h when hour12 is not set. | string | device |
| startTime Chips: first slot. | 'HH:mm' | TimeValue | '09:00' |
| endTime Chips: closing time (exclusive). | 'HH:mm' | TimeValue | '17:00' |
| slots Chips: explicit slot list instead of start / end / interval. | ('HH:mm' | TimeValue)[] | — |
| bookedTimes Chips: taken slots, struck through and not selectable. | ('HH:mm' | TimeValue)[] | — |
| disabledTimes Chips: slots unavailable for another reason (faded). | ('HH:mm' | TimeValue)[] | — |
| columns Chips per row. | number | 3 |
| groupByPeriod Chips: Morning / Afternoon / Evening headings with an open-slot count. | boolean | false |
| label Sheet: field label. | string | labels.time |
| floatingLabel Sheet: set to false to put the label above the field as static text (no notch) and show placeholder inside. | boolean | true |
| title Sheet: heading. | string | label |
| placeholder Sheet: shown while nothing is picked. | string | labels.selectTime |
| size Sheet: field height and type size. | 'sm' | 'md' | 'lg' | 'md' |
| confirm Sheet: stage the choice behind Cancel / Set; chips otherwise close on pick. | boolean | true for wheel and clock |
| error Sheet: red border, icon message and a shake. | string | — |
| success Sheet: success border and check; a string is shown under the field. | boolean | string | — |
| helper Sheet: hint under the field. | string | — |
| disabled Sheet: dims the field and blocks opening. | boolean | false |
| accent Selection band, clock hand and active segment, focus and halo colour. | string | theme accent |
| surface Sheet: background behind the field (label notch). | string | theme background |
| style Style for the wheel, clock, slot grid or field wrapper, depending on variant and presentation. | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
| fieldStyle Sheet: the trigger box — background, border, radius, height, padding. Wins over the computed style; a borderColor replaces the resting border only (open, error and success colours still show). A numeric height / borderRadius re-centres the label and resizes the halo. | StyleProp<ViewStyle> | — |
| inputStyle Sheet: the formatted time text in the trigger. | StyleProp<TextStyle> | — |
| labelStyle Sheet: label in both modes. color is the resting colour — open (accent), error and success still take over; fontSize sets the resting size, it floats at the same ratio and the notch follows its width. | StyleProp<TextStyle> | — |
| messageStyle Sheet: helper / error / success text. color applies to the helper; error and success keep their tone colour. | StyleProp<TextStyle> | — |
| placeholderTextColor Sheet: placeholder colour in the trigger. | string | theme mutedForeground |
| iconColor Sheet: clock icon colour at rest (accent while open). | string | theme mutedForeground |
| menuStyle Sheet: the sheet / dialog panel — background, border, radius, padding, shadow (transform and opacity are animated). | StyleProp<ViewStyle> | — |
Customization
You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.
Design theme
Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).
Variants
Pick the Variants chip above the preview, or set variant=… — 'wheel' | 'chips' | 'clock'.
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- 'wheel' | 'chips' | 'clock' · default 'wheel'3D wheel drums, a grid of time slots, or an analog dial (24-hour mode adds an inner 13–00 ring).
- size
- 'sm' | 'md' | 'lg' · default 'md'Sheet: field height and type size.
- accent
- string · default theme accentSelection band, clock hand and active segment, focus and halo colour.
- surface
- string · default theme backgroundSheet: background behind the field (label notch).
- style
- StyleProp<ViewStyle>Style for the wheel, clock, slot grid or field wrapper, depending on variant and presentation.
- className
- stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.
- fieldStyle
- StyleProp<ViewStyle>Sheet: the trigger box — background, border, radius, height, padding. Wins over the computed style; a borderColor replaces the resting border only (open, error and success colours still show). A numeric height / borderRadius re-centres the label and resizes the halo.
- inputStyle
- StyleProp<TextStyle>Sheet: the formatted time text in the trigger.
- labelStyle
- StyleProp<TextStyle>Sheet: label in both modes. color is the resting colour — open (accent), error and success still take over; fontSize sets the resting size, it floats at the same ratio and the notch follows its width.
- messageStyle
- StyleProp<TextStyle>Sheet: helper / error / success text. color applies to the helper; error and success keep their tone colour.
- placeholderTextColor
- string · default theme mutedForegroundSheet: placeholder colour in the trigger.
- iconColor
- string · default theme mutedForegroundSheet: clock icon colour at rest (accent while open).
- menuStyle
- StyleProp<ViewStyle>Sheet: the sheet / dialog panel — background, border, radius, padding, shadow (transform and opacity are animated).
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
Behaviour & accessibility
- Touch
- Wheel drums snap with momentum and a tapped row jumps into the band. On the clock, drag the hand anywhere on the dial; it snaps to hours, then moves on to minutes when you let go.
- Motion
- Wheel rows tilt, shrink and fade past the selection band, driven by scroll on the native driver; the clock header crossfades between hours and minutes.
- Screen readers
- Each wheel column and the clock dial are adjustable with increment / decrement actions; AM / PM and the time chips are radio groups, with booked or unavailable slots named. The sheet field is a button with expanded state.
Source
FAQ
How do I make a time picker in React Native?
npx @expokit/cli@latest add time-picker in your Expo or React Native project and it copies a ready-made time picker into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Time Picker work in Expo Go?
react-native-svg) are all included in Expo Go.How do I add Time Picker to my Expo app?
npx @expokit/cli@latest add time-picker in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.Is Time Picker free?
Can I change how Time Picker looks?
useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.