Calendar
Date selection with day/month/year views.
Generado a partir del código fuente público del paquete.
API
CalendarCellPropsinterfaz
Props for Calendar Cell.
Propiedades
daynumber
hijos: Element
CalendarContextValueinterfaz
Context shape shared among all calendar parts.
Propiedades
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).
CalendarDateMathPortinterfaz
Port interface for date math operations.
CalendarGridPropsinterfaz
Props for Calendar Grid.
hijos: (weeks: number[][]) => Element
CalendarHeaderPropsinterfaz
Props for the Calendar Header.
hijos: Element
CalendarNextButtonPropsinterfaz
Props for Calendar NextButton.
hijos: Element
CalendarPrevButtonPropsinterfaz
Props for Calendar PrevButton.
hijos: Element
CalendarRootPropsinterfaz
Props for the Calendar Root component.
Propiedades
class?stringdateMath?CalendarDateMathPortdefaultValue?DateValueisDateDisabled?(date: DateValue) => booleanonValueChange?(date: DateValue) => voidvalue?Accessor<DateValue | undefined>weekStartsOn?number
hijos: Element
CalendarTitlePropsinterfaz
Props for Calendar Title.
hijos: Element
Cellcomponente
@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
Propiedades
daynumber
hijos: Element
DateValueinterfaz
A date value with year, month (1-12), and day (1-31).
Propiedades
daynumbermonthnumberyearnumber
gregorianDateMathvariable
Default Gregorian date math implementation. No external dependencies.
Gridcomponente
@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
hijos: (weeks: number[][]) => Element
Headercomponente
@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
hijos: Element
NextButtoncomponente
@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
hijos: Element
PrevButtoncomponente
@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
hijos: Element
RangeCalendarCellPropsinterfaz
Props for RangeCalendar Cell.
Propiedades
daynumber
hijos: Element
RangeCalendarContextValueinterfaz
Context shape shared among all RangeCalendar parts.
Propiedades
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).
RangeCalendarGridPropsinterfaz
Props for RangeCalendar Grid.
hijos: (weeks: number[][]) => Element
RangeCalendarHeaderPropsinterfaz
Props for the RangeCalendar Header.
hijos: Element
RangeCalendarNextButtonPropsinterfaz
Props for RangeCalendar NextButton.
hijos: Element
RangeCalendarPrevButtonPropsinterfaz
Props for RangeCalendar PrevButton.
hijos: Element
RangeCalendarRootPropsinterfaz
Props for the RangeCalendar Root component.
Propiedades
class?stringdateMath?CalendarDateMathPortdefaultValue?RangeValuedir?"ltr" | "rtl"isDateDisabled?(date: DateValue) => booleanonValueChange?(range: RangeValue) => voidvalue?Accessor<RangeValue | undefined>weekStartsOn?number
hijos: Element
RangeCalendarTitlePropsinterfaz
Props for RangeCalendar Title.
hijos: Element
RangeCellcomponente
RangeCell(props: RangeCalendarCellProps): Element
Propiedades
daynumber
hijos: Element
RangeGridcomponente
RangeGrid(props: RangeCalendarGridProps): Element
hijos: (weeks: number[][]) => Element
RangeHeadercomponente
RangeHeader(props: RangeCalendarHeaderProps): Element
hijos: Element
RangeNextButtoncomponente
RangeNextButton(props: RangeCalendarNextButtonProps): Element
hijos: Element
RangePrevButtoncomponente
RangePrevButton(props: RangeCalendarPrevButtonProps): Element
hijos: Element
RangeRootcomponente
RangeRoot(props: RangeCalendarRootProps): Element
Propiedades
class?stringdateMath?CalendarDateMathPortdefaultValue?RangeValuedir?"ltr" | "rtl"isDateDisabled?(date: DateValue) => booleanonValueChange?(range: RangeValue) => voidvalue?Accessor<RangeValue | undefined>weekStartsOn?number
hijos: Element
RangeTitlecomponente
RangeTitle(props: RangeCalendarTitleProps): Element
hijos: Element
RangeValueinterfaz
A range value with a start date and an optional end date.
Propiedades
end?DateValuestartDateValue
Rootcomponente
@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
Propiedades
class?stringdateMath?CalendarDateMathPortdefaultValue?DateValueisDateDisabled?(date: DateValue) => booleanonValueChange?(date: DateValue) => voidvalue?Accessor<DateValue | undefined>weekStartsOn?number
hijos: Element
Titlecomponente
@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
hijos: Element
useCalendarContextcontexto
useCalendarContext(): CalendarContextValue
useRangeCalendarContextcontexto
useRangeCalendarContext(): RangeCalendarContextValue