Calendar
Date selection with day/month/year views.
Generated from the package's public source.
API
CalendarCellPropsinterface
Props for Calendar Cell.
Props
daynumber
children: Element
CalendarContextValueinterface
Context shape shared among all calendar parts.
Props
dateMathCalendarDateMathPort— The date math port.focusedDateAccessor<DateValue>— The currently focused date (for keyboard navigation).focusedMonthAccessor<DateValue>— The currently displayed month (for grid rendering).isDateDisabled(date: DateValue) => boolean— Check if a date is disabled.isToday(date: DateValue) => boolean— Check if a date is today.nextMonth() => void— Navigate to next month.prevMonth() => void— Navigate to previous month.selectDate(date: DateValue) => void— Select a date.selectedDateAccessor<DateValue | undefined>— The selected date(s).setFocusedDate(date: DateValue) => void— Set focused date (for keyboard nav).weekStartsOnnumber— Week start day (0=Sun, 1=Mon).
CalendarDateMathPortinterface
Port interface for date math operations.
CalendarGridPropsinterface
Props for Calendar Grid.
children: (weeks: number[][]) => Element
CalendarHeaderPropsinterface
Props for the Calendar Header.
children: Element
CalendarNextButtonPropsinterface
Props for Calendar NextButton.
children: Element
CalendarPrevButtonPropsinterface
Props for Calendar PrevButton.
children: Element
CalendarRootPropsinterface
Props for the Calendar Root component.
Props
class?stringdateMath?CalendarDateMathPortdefaultValue?DateValueisDateDisabled?(date: DateValue) => booleanonValueChange?(date: DateValue) => voidvalue?Accessor<DateValue | undefined>weekStartsOn?number
children: Element
CalendarTitlePropsinterface
Props for Calendar Title.
children: Element
Cellcomponent
@solidiom/calendar — Headless calendar primitive. Parts: Root, Header, PrevButton, Title, NextButton, Grid, Cell. Supports month navigation, keyboard nav, date selection, disabled dates, today highlighting. Also exports RangeCalendar — a range-selection variant with start/end/restart semantics.
Cell(props: CalendarCellProps): Element
Props
daynumber
children: Element
DateValueinterface
A date value with year, month (1-12), and day (1-31).
Props
daynumbermonthnumberyearnumber
gregorianDateMathvariable
Default Gregorian date math implementation. No external dependencies.
Gridcomponent
@solidiom/calendar — Headless calendar primitive. Parts: Root, Header, PrevButton, Title, NextButton, Grid, Cell. Supports month navigation, keyboard nav, date selection, disabled dates, today highlighting. Also exports RangeCalendar — a range-selection variant with start/end/restart semantics.
Grid(props: CalendarGridProps): Element
children: (weeks: number[][]) => Element
Headercomponent
@solidiom/calendar — Headless calendar primitive. Parts: Root, Header, PrevButton, Title, NextButton, Grid, Cell. Supports month navigation, keyboard nav, date selection, disabled dates, today highlighting. Also exports RangeCalendar — a range-selection variant with start/end/restart semantics.
Header(props: CalendarHeaderProps): Element
children: Element
NextButtoncomponent
@solidiom/calendar — Headless calendar primitive. Parts: Root, Header, PrevButton, Title, NextButton, Grid, Cell. Supports month navigation, keyboard nav, date selection, disabled dates, today highlighting. Also exports RangeCalendar — a range-selection variant with start/end/restart semantics.
NextButton(props: CalendarNextButtonProps): Element
children: Element
PrevButtoncomponent
@solidiom/calendar — Headless calendar primitive. Parts: Root, Header, PrevButton, Title, NextButton, Grid, Cell. Supports month navigation, keyboard nav, date selection, disabled dates, today highlighting. Also exports RangeCalendar — a range-selection variant with start/end/restart semantics.
PrevButton(props: CalendarPrevButtonProps): Element
children: Element
RangeCalendarCellPropsinterface
Props for RangeCalendar Cell.
Props
daynumber
children: Element
RangeCalendarContextValueinterface
Context shape shared among all RangeCalendar parts.
Props
dateMathCalendarDateMathPort— The date math port.dirAccessor<"ltr" | "rtl">— Text direction for RTL support.focusedDateAccessor<DateValue>— The currently focused date (for keyboard navigation).focusedMonthAccessor<DateValue>— The currently displayed month (for grid rendering).highlightedEndAccessor<DateValue | undefined>— The date currently being hovered/focused during an in-progress selection (start chosen, end not yet committed). Used for visual highlight preview.isDateDisabled(date: DateValue) => boolean— Check if a date is disabled.isInRange(date: DateValue) => boolean— Check if a date is within the current range (inclusive).isRangeEnd(date: DateValue) => boolean— Check if a date is the range end.isRangeStart(date: DateValue) => boolean— Check if a date is the range start.isSelectingAccessor<boolean>— Whether a range selection is in progress (start chosen, awaiting end).isToday(date: DateValue) => boolean— Check if a date is today.nextMonth() => void— Navigate to next month.prevMonth() => void— Navigate to previous month.rangeValueAccessor<RangeValue | undefined>— The current range selection.selectDate(date: DateValue) => void— Handle a date click/select: start → end → restart cycle.setFocusedDate(date: DateValue) => void— Set focused date (for keyboard nav).setHighlightedEnd(date: DateValue | undefined) => void— Set the highlighted end (hover preview).weekStartsOnnumber— Week start day (0=Sun, 1=Mon).
RangeCalendarGridPropsinterface
Props for RangeCalendar Grid.
children: (weeks: number[][]) => Element
RangeCalendarHeaderPropsinterface
Props for the RangeCalendar Header.
children: Element
RangeCalendarNextButtonPropsinterface
Props for RangeCalendar NextButton.
children: Element
RangeCalendarPrevButtonPropsinterface
Props for RangeCalendar PrevButton.
children: Element
RangeCalendarRootPropsinterface
Props for the RangeCalendar Root component.
Props
class?stringdateMath?CalendarDateMathPortdefaultValue?RangeValuedir?"ltr" | "rtl"isDateDisabled?(date: DateValue) => booleanonValueChange?(range: RangeValue) => voidvalue?Accessor<RangeValue | undefined>weekStartsOn?number
children: Element
RangeCalendarTitlePropsinterface
Props for RangeCalendar Title.
children: Element
RangeCellcomponent
RangeCell(props: RangeCalendarCellProps): Element
Props
daynumber
children: Element
RangeGridcomponent
RangeGrid(props: RangeCalendarGridProps): Element
children: (weeks: number[][]) => Element
RangeHeadercomponent
RangeHeader(props: RangeCalendarHeaderProps): Element
children: Element
RangeNextButtoncomponent
RangeNextButton(props: RangeCalendarNextButtonProps): Element
children: Element
RangePrevButtoncomponent
RangePrevButton(props: RangeCalendarPrevButtonProps): Element
children: Element
RangeRootcomponent
RangeRoot(props: RangeCalendarRootProps): Element
Props
class?stringdateMath?CalendarDateMathPortdefaultValue?RangeValuedir?"ltr" | "rtl"isDateDisabled?(date: DateValue) => booleanonValueChange?(range: RangeValue) => voidvalue?Accessor<RangeValue | undefined>weekStartsOn?number
children: Element
RangeTitlecomponent
RangeTitle(props: RangeCalendarTitleProps): Element
children: Element
RangeValueinterface
A range value with a start date and an optional end date.
Props
end?DateValuestartDateValue
Rootcomponent
@solidiom/calendar — Headless calendar primitive. Parts: Root, Header, PrevButton, Title, NextButton, Grid, Cell. Supports month navigation, keyboard nav, date selection, disabled dates, today highlighting. Also exports RangeCalendar — a range-selection variant with start/end/restart semantics.
Root(props: CalendarRootProps): Element
Props
class?stringdateMath?CalendarDateMathPortdefaultValue?DateValueisDateDisabled?(date: DateValue) => booleanonValueChange?(date: DateValue) => voidvalue?Accessor<DateValue | undefined>weekStartsOn?number
children: Element
Titlecomponent
@solidiom/calendar — Headless calendar primitive. Parts: Root, Header, PrevButton, Title, NextButton, Grid, Cell. Supports month navigation, keyboard nav, date selection, disabled dates, today highlighting. Also exports RangeCalendar — a range-selection variant with start/end/restart semantics.
Title(props: CalendarTitleProps): Element
children: Element
useCalendarContextcontext
useCalendarContext(): CalendarContextValue
useRangeCalendarContextcontext
useRangeCalendarContext(): RangeCalendarContextValue