Calendar

React DayPicker with Flux tokens: single, range, dropdown captions, week numbers, presets, RTL, and timezone support.

Preview

Interactive examples use the same @flux/ui build as production. Toggle theme in the header for light and dark. Motion tokens and layout patterns live under Motion and Patterns in the sidebar.

Live preview

Single (default caption)

December 2026

Month & year dropdowns

December 2026

Range · two months

January 2026
February 2026

Full width (fullWidth)

January 2026

Week numbers

February 2026
06
07
08
09

Modifiers · booked dates

February 2026

Presets

December 2026

Date + time

December 2026

Custom cells · larger grid

December 2026

RTL · Arabic locale

ديسمبر 2026

Timezone-aware selection

Uses timeZone from Intl after mount to avoid hydration drift.

December 2026

Installation

Add the package to your app (full Next.js + Tailwind steps on Installation):

npm install @payglocal_ui/flux-ui

Usage

Import

import { Calendar, type DateRange } from "@payglocal_ui/flux-ui";

Example

const [date, setDate] = useState<Date | undefined>();

<Calendar
  mode="single"
  selected={date}
  onSelect={setDate}
  captionLayout="dropdown"
  className="rounded-xl border border-border"
/>