Props
| Name | Description |
|---|---|
activeSegment Type: BbCalendarSegment | Which end the time rail edits in range + |
ampm Type: booleanDefaultfalse | 12-hour display with an AM/PM column (requires |
clearable Type: booleanDefaultfalse | Clicking the selected date (week, month, year) again clears a single value. Off: re-picking keeps it. Without it, clicking the picked date again keeps it, which suits a required choice. See example |
disabled Type: booleanDefaultfalse | Disables every cell, the navigation and the time rail. See example |
firstDayOfWeek Type: 0 | 1 | 2 | 3 | 4 | 5 | 6Defaultthe locale's week start | First day of the week (0 = Sunday … 6 = Saturday). Omitted, the active locale's week start: Monday for |
floating Type: booleanDefaultfalse | Emit plain calendar strings instead of zoned ISO instants. Implied (and forced) by For delivery days, stays and report filters: a calendar day that must read the same in every timezone. See example |
max Type: string | Maximum selectable value, in this |
min Type: string | Minimum selectable value in this An empty calendar whose window lies entirely after today opens on this month instead of on a disabled grid. See example |
modelValue Type: string | string[] | null | v-model: |
month Type: string | The month on screen ( |
multiple Type: booleanDefaultfalse | Multi-selection: each pick toggles a value in a sorted array (days, weeks, months or years). Needs an array |
numberOfMonths Type: numberDefault1 | How many months show side by side (day grids only). The keyboard crosses from one month into the next, and the arrows page all of them at once. Too narrow for them all, the months wrap onto the next row. See example |
pt Type: (PtCompoundOf<"", { readonly parts: readonly ["root", "header", "arrow", "month", "year", "cellColumnHeader", "week", "weekNumber", "day", "dayButton", "monthItem", "yearItem", "item"]; readonly states: readonly ["outside", "today", "inRange", "selected", "rangeStart", "rangeEnd", "disabled", "active", "highlighted"]; readonly wide: readonly ["disabled"]; readonly node: { readonly week: readonly ["inRange", "selected", "rangeStart", "rangeEnd"]; readonly weekNumber: readonly ["inRange", "selected", "rangeStart", "rangeEnd"]; readonly day: readonly ["outside", "today", "inRange", "selected", "rangeStart", "rangeEnd", "highlighted"]; readonly dayButton: readonly ["outside", "today", "inRange", "selected", "rangeStart", "rangeEnd", "highlighted"]; readonly monthItem: readonly ["inRange", "selected", "rangeStart", "rangeEnd", "highlighted"]; readonly yearItem: readonly ["inRange", "selected", "rangeStart", "rangeEnd", "highlighted"]; readonly month: readonly ["active"]; readonly year: readonly ["active"]; readonly item: readonly ["selected"]; }; }> & { header?: PtValue | undefined; root?: PtValue | undefined; "header:disabled"?: PtValue | undefined; "root:disabled"?: PtValue | undefined; item?: PtValue | undefined; "item:disabled"?: PtValue | undefined; arrow?: PtValue | undefined; month?: PtValue | undefined; year?: PtValue | undefined; cellColumnHeader?: PtValue | undefined; week?: PtValue | undefined; weekNumber?: PtValue | undefined; day?: PtValue | undefined; dayButton?: PtValue | undefined; monthItem?: PtValue | undefined; yearItem?: PtValue | undefined; "arrow:disabled"?: PtValue | undefined; "month:disabled"?: PtValue | undefined; "year:disabled"?: PtValue | undefined; "cellColumnHeader:disabled"?: PtValue | undefined; "week:disabled"?: PtValue | undefined; "weekNumber:disabled"?: PtValue | undefined; "day:disabled"?: PtValue | undefined; "dayButton:disabled"?: PtValue | undefined; "monthItem:disabled"?: PtValue | undefined; "yearItem:disabled"?: PtValue | undefined; "item:selected"?: PtValue | undefined; "month:active"?: PtValue | undefined; "year:active"?: PtValue | undefined; "week:inRange"?: PtValue | undefined; "week:selected"?: PtValue | undefined; "week:rangeStart"?: PtValue | undefined; "week:rangeEnd"?: PtValue | undefined; "weekNumber:inRange"?: PtValue | undefined; "weekNumber:selected"?: PtValue | undefined; "weekNumber:rangeStart"?: PtValue | undefined; "weekNumber:rangeEnd"?: PtValue | undefined; "day:outside"?: PtValue | undefined; "day:today"?: PtValue | undefined; "day:inRange"?: PtValue | undefined; "day:selected"?: PtValue | undefined; "day:rangeStart"?: PtValue | undefined; "day:rangeEnd"?: PtValue | undefined; "day:highlighted"?: PtValue | undefined; "dayButton:outside"?: PtValue | undefined; "dayButton:today"?: PtValue | undefined; "dayButton:inRange"?: PtValue | undefined; "dayButton:selected"?: PtValue | undefined; "dayButton:rangeStart"?: PtValue | undefined; "dayButton:rangeEnd"?: PtValue | undefined; "dayButton:highlighted"?: PtValue | undefined; "monthItem:inRange"?: PtValue | undefined; "monthItem:selected"?: PtValue | undefined; "monthItem:rangeStart"?: PtValue | undefined; "monthItem:rangeEnd"?: PtValue | undefined; "monthItem:highlighted"?: PtValue | undefined; "yearItem:inRange"?: PtValue | undefined; "yearItem:selected"?: PtValue | undefined; "yearItem:rangeStart"?: PtValue | undefined; "yearItem:rangeEnd"?: PtValue | undefined; "yearItem:highlighted"?: PtValue | undefined; }) | Passthrough, object form: the same keys as the |
pt:<part> Type: PtValue | Passthrough, attribute form: one attribute per part,
|
range Type: booleanDefaultfalse | Enables range selection ( Keep the model an array, with |
readonly Type: booleanDefaultfalse | Shows the calendar and lets the user page through it, but no pick changes the value. For a confirmed choice that stays on screen. Paging through months still works. See example |
seconds Type: booleanDefaultfalse | Adds the seconds column (requires |
selectable Type: ((date: string) => boolean) | Predicate invoked per candidate; return For rules a window cannot express, such as weekends or closures. Refused days are already disabled and announced; add no click guard of your own. See example |
step Type: numberDefault1 | Minute-column granularity and arrow stepping (requires |
time Type: string | string[] | null | Companion time model ( |
today Type: string | Today's date, an ISO day like the values ( Fix it for a demo, a screenshot test or a business date: a fixed today is marked on the server too and never moves at midnight. Set it for the whole app with |
type Type: DatePickerTypeDefault"date" | What the calendar selects and emits: |
utc Type: booleanDefaultfalse | Emit UTC ( |
v-model
Values kept in sync through v-model.
| Name | Description |
|---|---|
activeSegment Type: BbCalendarSegment | |
modelValue Type: string | string[] | null | Empty, the calendar opens on today's month (the |
month Type: string | Bind it to load the marks for the month on screen: paging writes the first day of the new month. See example |
time Type: string | string[] | null | With |
Events
| Name | Description |
|---|---|
active Type: (value: BbDateValue): void | Focus or a click entered the calendar, with the current value. |
grid-pick Type: (value: string | string[] | null): void | Relay of the raw grid pick, before this component combines it with the time. An embedding host binds this to run its own value engine (the date picker closes on it once the selection is complete); clean consumers ignore it and use |
inactive Type: (value: BbDateValue): void | Focus or a click left the calendar after it was active, with the current value. |
time-pick Type: (payload: { unit: TimeUnit; value: string; }): void | Relay of the raw time-rail pick. An embedding host binds this to run its own value engine; clean consumers ignore it and use |
update:activeSegment Type: (value: BbCalendarSegment): void | The active range end changed (range + |
update:modelValue Type: (value: string | string[] | null): void | Emitted when the selected value changes: a string (single), |
update:month Type: (value: string): void | The user paged to another month: its first day, ISO ( |
update:time Type: (value: string | string[] | null): void | Companion time model, alongside every change while |
value-commit Type: (value: BbDateValue): void | Emitted once the user finishes changing the value, after the last The hook for saving: once per pick, a range once both ends are set. Never for a value your code sets. See example |
Slots
The listed properties are the ones exposed to the slot scope.
| Name | Description |
|---|---|
<YYYY-MM-DD> Type: BbCalendarDaySlotProps | One date's button label (e.g. Named after the local date exactly as written: |
<YYYY-MM-DD>:append Type: BbCalendarDaySlotProps | Content under one date's cell; beats Named after the local date exactly as written: |
day Type: BbCalendarDaySlotProps | Replaces the day button label inside each calendar day. Replaces every day's number, for a price or a symbol in its place. Its text is read after the full date; the scope also carries |
day:append Type: BbCalendarDaySlotProps | Appends content below each calendar day. Look the day up from |
Renamed and removed
Names from v2 and from earlier 3.0 betas that no longer work, and what to write instead.
- slot
append:<x><x>:appendfails silently - slot
append:dayday:appendfails silently pt:columnHeaderpt:cellColumnHeaderfails silently