# Calendar — React Native component for Expo

> A month calendar where months slide in from the side you travel and ranges draw one band.

A month calendar for single dates, continuous ranges or multiple picks. Months slide in from the direction you travel (chevrons or a swipe), the title flips to a month / year grid, selected days pop with a spring and ranges draw one band with rounded ends that wraps across weeks. Locale-aware weekday and month names via Intl, Sunday or Monday weeks, min / max / custom disabled days, a today ring, coloured event dots and whole-day colour highlights. Day tiles follow the kit radius — square at 0, circles from 16 up.

- Docs: https://expokit.in/docs/components/calendar
- Tier: Free
- Also called: calendar picker, date range picker, booking calendar
- Category: Inputs
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg
- Uses ExpoKit items: kit
- Variants: Single, Range, Marked, Booking, Week Starts Monday

## Installation

Run once per project: `npx @expokit/cli@latest init` (shared theme + KitProvider). Then:

```bash
npx @expokit/cli@latest add calendar
```

The CLI copies the source into your project (you own the code) and installs react-native-svg.

Import: `import { Calendar } from "@/components/ui/calendar";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `mode` | `'single' \| 'range' \| 'multiple'` | `'single'` | Selection model; decides the value type. |
| `value` | `Date \| { start, end } \| Date[] \| null` | — | Controlled selection (Date for single, DateRange for range, Date[] for multiple). |
| `defaultValue` | `same as value` | `null` | Initial selection when uncontrolled. |
| `onChange` | `(value) => void` | — | Fires on every tap. Range fires { start, end: null } first, then both ends. |
| `month` | `Date` | — | Controlled visible month (any date inside it). |
| `defaultMonth` | `Date` | `selection or today` | Month shown first when uncontrolled. |
| `onMonthChange` | `(month: Date) => void` | — | Called with the first day of the month navigated to. |
| `weekStartsOn` | `0 \| 1` | `0` | 0 = Sunday, 1 = Monday. |
| `locale` | `string` | `device` | BCP 47 locale for month and weekday names. |
| `minDate` | `Date` | — | Earliest selectable day; also limits navigation. |
| `maxDate` | `Date` | — | Latest selectable day; also limits navigation. |
| `isDateDisabled` | `(date: Date) => boolean` | — | Disable individual days (booked, holidays, weekends). |
| `markedDates` | `Record<string, string \| string[]>` | — | Up to three coloured dots under each day, keyed by toDateKey(date) (YYYY-MM-DD). |
| `highlightedDates` | `Record<string, string>` | — | Fills whole days with a colour (birthdays, shifts, people), keyed by toDateKey(date). Text switches to a readable colour on top. |
| `variant` | `'tiles' \| 'minimal'` | `'tiles'` | tiles puts every day of the month on a soft tile; minimal shows bare numbers with a hover / press circle. |
| `weekdayFormat` | `'narrow' \| 'short'` | `'narrow'` | Weekday header as single letters (M T W) or short names (Mon Tue Wed), via Intl. |
| `showTodayButton` | `boolean` | `true` | Shows a Today pill in the header whenever another month is on screen; tapping it jumps back. |
| `showOutsideDays` | `boolean` | `false` | Show faded days of the neighbouring months (tapping one navigates there). |
| `showToday` | `boolean` | `true` | Ring and tint today. |
| `fixedWeeks` | `boolean` | `false` | Always render six week rows so the height never changes. |
| `monthPicker` | `boolean` | `true` | Tap the title for a month grid, tap again for a year grid. |
| `max` | `number` | — | Most dates selectable in multiple mode. |
| `accent` | `string` | `theme accent` | Selection, band and today colour. |
| `style` | `StyleProp<ViewStyle>` | — | Root container style. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## 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.

## FAQ

### How do I make a calendar picker in React Native?

Use ExpoKit's Calendar: run 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?

Yes. Calendar runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg) are all included in Expo Go.

### How do I add Calendar to my Expo app?

Run 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?

Yes. Calendar is free: its full source is on this page and the CLI installs it without an account.

### Can I change how Calendar looks?

Yes. It takes its colours, radius and light / dark mode from 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.

## More

- Live preview, variants and code: https://expokit.in/docs/components/calendar
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
