Data/Calendar

Calendar

An accessible date picker calendar with month navigation and flexible date disabling via a predicate function.

import { Calendar } from "@animui/ui"

Basic

A controlled calendar. Pair value with onChange to manage selection state.

July 2026
Su
Mo
Tu
We
Th
Fr
Sa

Date range constraint

Use the disabled predicate to block dates outside an allowed window.

July 2026
Su
Mo
Tu
We
Th
Fr
Sa

Only the next 3 months are selectable

Disabled dates

Pass a function to disabled to mark specific dates as non-selectable — weekends, holidays, or any custom logic.

July 2026
Su
Mo
Tu
We
Th
Fr
Sa

Weekends are disabled

Props

PropTypeDefaultDescription
valueDate | undefinedundefinedThe currently selected date. Pass undefined for no selection.
onChange(date: Date) => voidCallback fired when the user clicks a date cell.
disabled(date: Date) => booleanReturn true to disable a specific date (dims it, prevents selection).
classNamestringAdditional CSS classes applied to the calendar root.
© 2026 Steal Shadow. MIT License.Report an issue