Monatskalender — component.calendar
Monatskalender mit optionaler CMS-Ausgabe und Agenda. Im CMS-Modus bleiben vorhandene Monats-/Tageslinks und Markierungen erhalten. 1.2.0 (opt-in): dayHref (Tageszahl als Link), selected (gewaehlter Tag), events[].href (Termin als Link). 1.3.0: Heute behaelt seine Schrift, wenn der Tag gewaehlt ist;
Beispiele
Leerer Monat ohne Navigation
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
month | string | "" |
today | string | "" |
events | array | [] |
todayStyle | string: primary | soft | "primary" |
eventStyle | string: block | badge | dot | "block" |
dayHref | string | "" |
selected | string | "" |
title | string | "" |
caption | string | "" |
weekdays | array | [] |
maxEvents | number | 2 |
markWeekend | boolean | false |
dayMarks | array | [] |
navSize | string: md | lg | "md" |
prevHref | string | "" |
nextHref | string | "" |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
source | string: props | cms | "props" |
Events & Slots
Events: navigate
Slot calendar: akzeptiert ui.*, layout.*
Slot agenda: akzeptiert ui.*, component.*, layout.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--calendar-border | var(--color-border-subtle) |
--calendar-today | var(--color-action-primary) |
Genutzte Design-Tokens
border.hairline color.accent-soft color.action.on-primary color.action.primary color.action.secondary-hover color.border.subtle color.status.danger color.status.danger-surface color.status.info color.status.info-surface color.status.success color.status.success-surface color.status.warning color.status.warning-surface color.surface.default color.surface.selected color.surface.sunken color.text.accent color.text.default color.text.muted duration.fast easing.standard focus.ring-color focus.ring-width font.family.default radius.control radius.full radius.sm radius.surface size.05 size.1 size.10 size.12 size.16 size.2 size.3 size.4 size.5 size.6 text.lg text.md text.sm text.xl text.xs weight.semibold