View as Markdown

API reference

@salmonui/calendars/calendar

30 exported symbols: 2 components, 5 functions, 14 interfaces and 9 types. Each name links its page with the signature, docs and members.

import { … } from '@salmonui/calendars/calendar';

Components

  • CalendarAn inline calendar: one month grid (or year / decade grid) with single or multiple day selection (selectionMode). WAI-ARIA APG date grid.
  • RangeCalendarAn inline calendar that selects a start and an end date.

Functions

  • getRangeDaysInclusive number of days of a range; 0 for null.
  • toDateThe Date (instant) of a plain date or date-time: its wall time in timeZone (DST resolved like Temporal 'compatible'), else in the host zone. An invalid value o…
  • toPlainDateNormalizes a DateInput (an invalid input is null; never throws).
  • toPlainDateTimeNormalizes a DateTimeInput; a date-only input is midnight.
  • toPlainTimeNormalizes a TimeInput; a date-time input keeps its time part.

Interfaces

Types