v0.1 public beta early access on GitHub
Home / Components / calendar

CalendarAndroid

Month-view calendar built with dependency-free Date math: day grid, prev/next navigation, selected highlight, disabled-day bounds and marked-date dots

$ npx lumioui add calendar
import { Calendar } from "@/components/ui/calendar/calendar";
Calendarcalendar.tsx
calendar/calendar.tsx open

Live preview — the real component, driven by the props below.

Props8
selected? string | Date | null Controlled selected date (ISO "yyyy-MM-dd" or Date).
defaultSelected? string | Date | null Uncontrolled initial selection. Ignored when `selected` is provided.
onSelect? (date: Date) => void
markedDates? string[] ISO date keys that get a dot marker.
minDate? string Earliest selectable date (ISO "yyyy-MM-dd", inclusive).
maxDate? string Latest selectable date (ISO "yyyy-MM-dd", inclusive).
initialMonth? Date Month initially shown when `selected` is unset.
className? string
Calendarcalendar.tsx
calendar/calendar.tsx open

Month-view calendar built with dependency-free Date math: day grid, prev/next navigation, selected highlight, disabled-day bounds and marked-date dots