Calendar
Standalone month-view calendar components. Includes single-date and date-range variants, each with animated month transitions, a spring-animated selection pill, and a scrollable month/year picker. For an input-triggered picker, see Date Picker.
Installation
npx stepwise-ui add calendar
Calendar
CalendarRange
First click sets the start, second click sets the end. Hovering previews the would-be range. Clicking an already-selected start clears the selection.
Calendar props
PropTypeDescription
defaultSelectedDateInitial selected date for uncontrolled usage.
selectedDate | nullControlled selected date. Pass null to clear.
onSelect(date: Date) => voidCalled when the user clicks a date.
classNamestringAdditional classes on the outermost Surface.
CalendarRange props
PropTypeDescription
fromDate | nullControlled range start date.
toDate | nullControlled range end date.
onRangeChange(from: Date | null, to: Date | null) => voidCalled whenever either endpoint changes.
classNamestringAdditional classes on the outermost Surface.