Kinetik UI

Month Calendar

.md

Pick a date or a range: a disc glides between days, months slide in from the side and a swipe turns the page.

v1.0.0Live on webreact-native-gesture-handlerreact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add month-calendar

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/month-calendar.json

Install manually

  1. Install dependencies
    npx expo install react-native-gesture-handler react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/month-calendar.tsx
    View source files

Usage

import { MonthCalendar } from '@/components/kinetik/month-calendar';

// One date
<MonthCalendar value={date} onChange={setDate} marked={eventDays} />;

// A range
<MonthCalendar mode="range" range={stay} onRangeChange={setStay} minDate={new Date()} />;

When to use

  • Picking a date where the day of the week matters: a booking, a delivery slot, a meeting.
  • Picking a stay or a period, with mode="range".

When not to use

  • Dates far in the past, such as a birthday. Use wheels or a typed date.
  • A time of day. Use Time Wheel.

Notes

  • The disc glides between days of the same month; arrows or a horizontal swipe turn the page and the new month slides in from that side.
  • In range mode the first tap sets the start, the second the end, and a third starts again. A tap before the start moves the start.
  • monthNames, dayNames and weekStartsOn localise it. Days outside minDate/maxDate are dimmed and cannot be chosen.
  • Every day is a button that reads its full date for screen readers; the selected days say so.

Props

MonthCalendarProps

PropTypeDefaultDescription
initialMonthDate—The month shown first. Defaults to the selected date's month, or today's.
minDateDate—Days before this cannot be chosen.
maxDateDate—Days after this cannot be chosen.
markedreadonly Date[]—Days that get a small dot, e.g. days with events.
weekStartsOn0 | 1—0 for Sunday, 1 for Monday. Defaults to 1.
monthNamesreadonly string[]—Twelve month names. Defaults to English.
dayNamesreadonly string[]—Seven weekday names starting on Sunday. Defaults to English.
onMonthChange(month: Date) => void—
hapticsboolean—A tick on each choice. Defaults to true.
testIDstring—
styleStyleProp<ViewStyle>—
mode'single'—

Performance and accessibility

Performance

Budget
42 plain day cells; one disc on three shared values, and one value slides each new month in. Nothing runs at rest.
Measured

Pixel 9 emulator, API 35, release build · interaction median 1.00× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 154 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
The disc jumps to the new day and months change in place.
Screen readers
A header with the month, Previous and Next buttons, and a button for every day that reads its full date and selected state.
Touch target
Day cells are 44 pt tall and a seventh of the width; the arrows are 44 pt.

Source files

components/kinetik/month-calendar.tsx is in the Code tab of the preview above.