Calendar — Playground

px
SunMonTueWedThuFriSat
size
locale
messages
disabled dates
State
html.html
<kui-calendar [(value)]="selectedDate" />
Calendar events
  • No events yet.
NameTypeDefaultDescription
[(value)]Date | nullnullSelected date. For a start and end pair use kui-calendar-range, whose value is a KuiDateRange | null. Next to input[kuiDatePicker] in the same field the directive wires it for you.
messagesPartial<KuiCalendarMessages> | undefinedundefinedPer-instance text overrides (label, today, previousMonth, nextMonth, previousYear, nextYear, previousDecade, nextDecade). They win over scoped and root messages.
[(viewDate)]Datecurrent monthFirst-of-month date that controls the visible month.
size'md' | 'sm''md'Calendar density. Use sm when embedding in tighter sidebars or panels.
flatbooleanfalseRemoves the calendar frame for dropdown or popover panel composition.
showWeekendbooleantrueMutes the weekend days of the locale (Saturday and Sunday in en-US) when enabled.
showFooterbooleanfalseShows the built-in value summary and Today shortcut.
[(minDate)] / [(maxDate)]Date | undefinedundefinedInclusive lower and upper bounds for selectable days. Models, so a paired input[kuiDatePicker] can wire them from its own bounds.
disabledDatesDate[] | ((date: Date) => boolean) | undefinedundefinedIndividual disabled dates or a predicate evaluated for each rendered date.
localestring | undefinedKUI_LOCALEBCP 47 locale override for month names, weekday names, the heading, week start and weekend. It wins over the locale of the nearest KuiI18n level.
showPrevNav / showNextNavbooleantrueHide one header navigation control for linked multi-calendar layouts.
[kuiCalendarHeader] / [kuiCalendarFooter]projected content-Replace the default header or footer with consumer-owned content.
provideKuiLocale(locale)Provider[]-Sets the locale of a subtree (a tag, a Signal or a function). Use provideKikitaUi({ locale }) for the whole application.
--kui-calendar-widthCSS custom property296pxOverrides the fixed calendar width while keeping the day grid predictable.
KuiCalendarOptions / KuiCalendarViewOptionsinterfaces-Shape of defaults.calendar (size, flat, showWeekend, showFooter, showPrevNav, showNextNav, previousIcon, nextIcon), shared with kui-calendar-range.
KuiCalendarMessagesinterface-Typed messages of the calendar and the calendar range, with English defaults.
kui-pickedDOM event-Bubbling event the calendar dispatches after a date pick, so an enclosing kui-dropdown can close.

Inputs, models, projection slots, provider defaults, messages and locale helpers verified against @kikita-labs/ui v2.0.0 public typings.