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 { Calendar } from "@/components/ui/calendar";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 |
|---|---|---|
| mode Selection model; decides the value type. | 'single' | 'range' | 'multiple' | 'single' |
| value Controlled selection (Date for single, DateRange for range, Date[] for multiple). | Date | { start, end } | Date[] | null | — |
| defaultValue Initial selection when uncontrolled. | same as value | null |
| onChange Fires on every tap. Range fires { start, end: null } first, then both ends. | (value) => void | — |
| month Controlled visible month (any date inside it). | Date | — |
| defaultMonth Month shown first when uncontrolled. | Date | selection or today |
| onMonthChange Called with the first day of the month navigated to. | (month: Date) => void | — |
| weekStartsOn 0 = Sunday, 1 = Monday. | 0 | 1 | 0 |
| locale BCP 47 locale for month and weekday names. | string | device |
| minDate Earliest selectable day; also limits navigation. | Date | — |
| maxDate Latest selectable day; also limits navigation. | Date | — |
| isDateDisabled Disable individual days (booked, holidays, weekends). | (date: Date) => boolean | — |
| markedDates Up to three coloured dots under each day, keyed by toDateKey(date) (YYYY-MM-DD). | Record<string, string | string[]> | — |
| highlightedDates Fills whole days with a colour (birthdays, shifts, people), keyed by toDateKey(date). Text switches to a readable colour on top. | Record<string, string> | — |
| variant tiles puts every day of the month on a soft tile; minimal shows bare numbers with a hover / press circle. | 'tiles' | 'minimal' | 'tiles' |
| weekdayFormat Weekday header as single letters (M T W) or short names (Mon Tue Wed), via Intl. | 'narrow' | 'short' | 'narrow' |
| showTodayButton Shows a Today pill in the header whenever another month is on screen; tapping it jumps back. | boolean | true |
| showOutsideDays Show faded days of the neighbouring months (tapping one navigates there). | boolean | false |
| showToday Ring and tint today. | boolean | true |
| fixedWeeks Always render six week rows so the height never changes. | boolean | false |
| monthPicker Tap the title for a month grid, tap again for a year grid. | boolean | true |
| max Most dates selectable in multiple mode. | number | — |
| accent Selection, band and today colour. | string | theme accent |
| style Root container style. | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
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=… — 'tiles' | 'minimal'.
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- 'tiles' | 'minimal' · default 'tiles'tiles puts every day of the month on a soft tile; minimal shows bare numbers with a hover / press circle.
- accent
- string · default theme accentSelection, band and today colour.
- style
- StyleProp<ViewStyle>Root container style.
- className
- stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
Behaviour & accessibility
- Touch
- Tap a day to select it. Swipe sideways or use the chevrons to change month, and tap the title for a month and year grid.
- Motion
- Months slide in with a spring, selected days pop with a bouncy spring and range bands fade in.
- Screen readers
- Days are buttons with selected and disabled state, labelled with the full date plus "today" or "has events" where they apply.
Source
FAQ
How do I make a calendar picker in React Native?
npx @expokit/cli@latest add calendar in your Expo or React Native project and it copies a ready-made calendar picker into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Calendar work in Expo Go?
react-native-svg) are all included in Expo Go.How do I add Calendar to my Expo app?
npx @expokit/cli@latest add calendar 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 Calendar free?
Can I change how Calendar 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.