Props
| Name | Type | Default | Description |
|---|---|---|---|
adaptive | boolean | undefined | `config.adaptive` (`true`) | On mobile the calendar opens inside a bottom off-canvas sheet instead of a
floating popover, mirroring the adaptive behaviour of |
ampm | boolean | undefined | false | 12-hour display with an AM/PM segment (requires |
append:icon | string | undefined | - | Name of the icon to be added at the end of the input. |
autocomplete | string | undefined | "off" | Guides the browser as to the type of information expected in the field. |
autofocus | Booleanish | undefined | - | Sets autofocus on page load. |
clearable | boolean | undefined | false | Displays a clear button when the input has a value and is being interacted with. |
compact | boolean | undefined | false | Sets the component in a compact state. |
description | string | undefined | - | Descriptive text displayed below the label and above the input. Unlike the hint it is always
visible, and it is linked to the input via |
direction | InputDirection | undefined | - | Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like |
disableCalendar | boolean | "mobile" | "desktop" | undefined | false | Disables the calendar: hides the trigger button and prevents the popover
from opening. Use |
disabled | boolean | undefined | false | Disables the component. |
disableWriting | boolean | "mobile" | "desktop" | undefined | false | Disables typing into the input.
Use |
errors | string | string[] | undefined | - | Can be a string or an array of string containing the messages to display.
They render in an |
firstDayOfWeek | 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined | - | Defines the first day of the week with |
floating | boolean | undefined | false | If true the date will have a format YYYY-MM-DD instead of the default ISO string. |
hasErrors | boolean | undefined | false | Define if the component should be in an error state. It usually attaches a CSS class for styling purposes. |
hasWarnings | boolean | undefined | false | Define if the component should be in a warning state.
Same chrome as errors with |
hideLabel | boolean | undefined | false | Visually hides the label of the input while maintaining accessibility. |
hint | string | undefined | - | Text box to be displayed near the input, usually to indicate instructions. |
id | string | undefined | - | The identifier of the component. |
labelrequired | string | - | Text content of the label of the element. |
labelMode | "outside" | "floating" | "inside" | undefined | - | Label rendering mode. |
labelPosition | "left" | "center" | "right" | undefined | - | Sets the text alignment of the label. |
loading | boolean | undefined | false | Sets the component in a loading state, usually triggering some visual styles. |
max | string | undefined | - | Maximum selectable date in |
min | string | undefined | - | Minimum selectable date in |
modelValuerequired | string | string[] | null | - | Used by v-model. Can be null, a single string, or an array of strings based on whether a range or single date is needed. |
name | string | undefined | - | Defines the name of the input. |
offCanvasProps | Partial<BbOffCanvasProps> | undefined | - | Props for the phone sheet. A |
persistentHint | boolean | undefined | false | Keeps the hint displayed. |
placeholder | string | undefined | - | String displayed when there's no data. |
prepend:icon | string | undefined | - | Name of the icon to be added at the start of the input. |
pt | PtMap<BbDatePickerInputPtPart, BbDatePickerInputPtState> | undefined | - | Passthrough, object form: the same keys as the |
pt:activator | PtValue | undefined | - | |
pt:activator:active | PtValue | undefined | - | |
pt:activator:disabled | PtValue | undefined | - | |
pt:activator:errors | PtValue | undefined | - | |
pt:activator:has-value | PtValue | undefined | - | |
pt:activator:highlighted | PtValue | undefined | - | |
pt:activator:in-range | PtValue | undefined | - | |
pt:activator:loading | PtValue | undefined | - | |
pt:activator:open | PtValue | undefined | - | |
pt:activator:outside | PtValue | undefined | - | |
pt:activator:range-end | PtValue | undefined | - | |
pt:activator:range-start | PtValue | undefined | - | |
pt:activator:readonly | PtValue | undefined | - | |
pt:activator:selected | PtValue | undefined | - | |
pt:activator:today | PtValue | undefined | - | |
pt:activator:warnings | PtValue | undefined | - | |
pt:arrow | PtValue | undefined | - | |
pt:arrow:active | PtValue | undefined | - | |
pt:arrow:disabled | PtValue | undefined | - | |
pt:arrow:errors | PtValue | undefined | - | |
pt:arrow:has-value | PtValue | undefined | - | |
pt:arrow:highlighted | PtValue | undefined | - | |
pt:arrow:in-range | PtValue | undefined | - | |
pt:arrow:loading | PtValue | undefined | - | |
pt:arrow:open | PtValue | undefined | - | |
pt:arrow:outside | PtValue | undefined | - | |
pt:arrow:range-end | PtValue | undefined | - | |
pt:arrow:range-start | PtValue | undefined | - | |
pt:arrow:readonly | PtValue | undefined | - | |
pt:arrow:selected | PtValue | undefined | - | |
pt:arrow:today | PtValue | undefined | - | |
pt:arrow:warnings | PtValue | undefined | - | |
pt:box | PtValue | undefined | - | |
pt:box:active | PtValue | undefined | - | |
pt:box:disabled | PtValue | undefined | - | |
pt:box:errors | PtValue | undefined | - | |
pt:box:has-value | PtValue | undefined | - | |
pt:box:highlighted | PtValue | undefined | - | |
pt:box:in-range | PtValue | undefined | - | |
pt:box:loading | PtValue | undefined | - | |
pt:box:open | PtValue | undefined | - | |
pt:box:outside | PtValue | undefined | - | |
pt:box:range-end | PtValue | undefined | - | |
pt:box:range-start | PtValue | undefined | - | |
pt:box:readonly | PtValue | undefined | - | |
pt:box:selected | PtValue | undefined | - | |
pt:box:today | PtValue | undefined | - | |
pt:box:warnings | PtValue | undefined | - | |
pt:clear | PtValue | undefined | - | |
pt:clear:active | PtValue | undefined | - | |
pt:clear:disabled | PtValue | undefined | - | |
pt:clear:errors | PtValue | undefined | - | |
pt:clear:has-value | PtValue | undefined | - | |
pt:clear:highlighted | PtValue | undefined | - | |
pt:clear:in-range | PtValue | undefined | - | |
pt:clear:loading | PtValue | undefined | - | |
pt:clear:open | PtValue | undefined | - | |
pt:clear:outside | PtValue | undefined | - | |
pt:clear:range-end | PtValue | undefined | - | |
pt:clear:range-start | PtValue | undefined | - | |
pt:clear:readonly | PtValue | undefined | - | |
pt:clear:selected | PtValue | undefined | - | |
pt:clear:today | PtValue | undefined | - | |
pt:clear:warnings | PtValue | undefined | - | |
pt:column-header | PtValue | undefined | - | |
pt:column-header:active | PtValue | undefined | - | |
pt:column-header:disabled | PtValue | undefined | - | |
pt:column-header:errors | PtValue | undefined | - | |
pt:column-header:has-value | PtValue | undefined | - | |
pt:column-header:highlighted | PtValue | undefined | - | |
pt:column-header:in-range | PtValue | undefined | - | |
pt:column-header:loading | PtValue | undefined | - | |
pt:column-header:open | PtValue | undefined | - | |
pt:column-header:outside | PtValue | undefined | - | |
pt:column-header:range-end | PtValue | undefined | - | |
pt:column-header:range-start | PtValue | undefined | - | |
pt:column-header:readonly | PtValue | undefined | - | |
pt:column-header:selected | PtValue | undefined | - | |
pt:column-header:today | PtValue | undefined | - | |
pt:column-header:warnings | PtValue | undefined | - | |
pt:day | PtValue | undefined | - | |
pt:day-button | PtValue | undefined | - | |
pt:day-button:active | PtValue | undefined | - | |
pt:day-button:disabled | PtValue | undefined | - | |
pt:day-button:errors | PtValue | undefined | - | |
pt:day-button:has-value | PtValue | undefined | - | |
pt:day-button:highlighted | PtValue | undefined | - | |
pt:day-button:in-range | PtValue | undefined | - | |
pt:day-button:loading | PtValue | undefined | - | |
pt:day-button:open | PtValue | undefined | - | |
pt:day-button:outside | PtValue | undefined | - | |
pt:day-button:range-end | PtValue | undefined | - | |
pt:day-button:range-start | PtValue | undefined | - | |
pt:day-button:readonly | PtValue | undefined | - | |
pt:day-button:selected | PtValue | undefined | - | |
pt:day-button:today | PtValue | undefined | - | |
pt:day-button:warnings | PtValue | undefined | - | |
pt:day:active | PtValue | undefined | - | |
pt:day:disabled | PtValue | undefined | - | |
pt:day:errors | PtValue | undefined | - | |
pt:day:has-value | PtValue | undefined | - | |
pt:day:highlighted | PtValue | undefined | - | |
pt:day:in-range | PtValue | undefined | - | |
pt:day:loading | PtValue | undefined | - | |
pt:day:open | PtValue | undefined | - | |
pt:day:outside | PtValue | undefined | - | |
pt:day:range-end | PtValue | undefined | - | |
pt:day:range-start | PtValue | undefined | - | |
pt:day:readonly | PtValue | undefined | - | |
pt:day:selected | PtValue | undefined | - | |
pt:day:today | PtValue | undefined | - | |
pt:day:warnings | PtValue | undefined | - | |
pt:description | PtValue | undefined | - | |
pt:description:active | PtValue | undefined | - | |
pt:description:disabled | PtValue | undefined | - | |
pt:description:errors | PtValue | undefined | - | |
pt:description:has-value | PtValue | undefined | - | |
pt:description:highlighted | PtValue | undefined | - | |
pt:description:in-range | PtValue | undefined | - | |
pt:description:loading | PtValue | undefined | - | |
pt:description:open | PtValue | undefined | - | |
pt:description:outside | PtValue | undefined | - | |
pt:description:range-end | PtValue | undefined | - | |
pt:description:range-start | PtValue | undefined | - | |
pt:description:readonly | PtValue | undefined | - | |
pt:description:selected | PtValue | undefined | - | |
pt:description:today | PtValue | undefined | - | |
pt:description:warnings | PtValue | undefined | - | |
pt:header | PtValue | undefined | - | |
pt:header:active | PtValue | undefined | - | |
pt:header:disabled | PtValue | undefined | - | |
pt:header:errors | PtValue | undefined | - | |
pt:header:has-value | PtValue | undefined | - | |
pt:header:highlighted | PtValue | undefined | - | |
pt:header:in-range | PtValue | undefined | - | |
pt:header:loading | PtValue | undefined | - | |
pt:header:open | PtValue | undefined | - | |
pt:header:outside | PtValue | undefined | - | |
pt:header:range-end | PtValue | undefined | - | |
pt:header:range-start | PtValue | undefined | - | |
pt:header:readonly | PtValue | undefined | - | |
pt:header:selected | PtValue | undefined | - | |
pt:header:today | PtValue | undefined | - | |
pt:header:warnings | PtValue | undefined | - | |
pt:hint | PtValue | undefined | - | |
pt:hint:active | PtValue | undefined | - | |
pt:hint:disabled | PtValue | undefined | - | |
pt:hint:errors | PtValue | undefined | - | |
pt:hint:has-value | PtValue | undefined | - | |
pt:hint:highlighted | PtValue | undefined | - | |
pt:hint:in-range | PtValue | undefined | - | |
pt:hint:loading | PtValue | undefined | - | |
pt:hint:open | PtValue | undefined | - | |
pt:hint:outside | PtValue | undefined | - | |
pt:hint:range-end | PtValue | undefined | - | |
pt:hint:range-start | PtValue | undefined | - | |
pt:hint:readonly | PtValue | undefined | - | |
pt:hint:selected | PtValue | undefined | - | |
pt:hint:today | PtValue | undefined | - | |
pt:hint:warnings | PtValue | undefined | - | |
pt:icon | PtValue | undefined | - | |
pt:icon:active | PtValue | undefined | - | |
pt:icon:disabled | PtValue | undefined | - | |
pt:icon:errors | PtValue | undefined | - | |
pt:icon:has-value | PtValue | undefined | - | |
pt:icon:highlighted | PtValue | undefined | - | |
pt:icon:in-range | PtValue | undefined | - | |
pt:icon:loading | PtValue | undefined | - | |
pt:icon:open | PtValue | undefined | - | |
pt:icon:outside | PtValue | undefined | - | |
pt:icon:range-end | PtValue | undefined | - | |
pt:icon:range-start | PtValue | undefined | - | |
pt:icon:readonly | PtValue | undefined | - | |
pt:icon:selected | PtValue | undefined | - | |
pt:icon:today | PtValue | undefined | - | |
pt:icon:warnings | PtValue | undefined | - | |
pt:input | PtValue | undefined | - | |
pt:input:active | PtValue | undefined | - | |
pt:input:disabled | PtValue | undefined | - | |
pt:input:errors | PtValue | undefined | - | |
pt:input:has-value | PtValue | undefined | - | |
pt:input:highlighted | PtValue | undefined | - | |
pt:input:in-range | PtValue | undefined | - | |
pt:input:loading | PtValue | undefined | - | |
pt:input:open | PtValue | undefined | - | |
pt:input:outside | PtValue | undefined | - | |
pt:input:range-end | PtValue | undefined | - | |
pt:input:range-start | PtValue | undefined | - | |
pt:input:readonly | PtValue | undefined | - | |
pt:input:selected | PtValue | undefined | - | |
pt:input:today | PtValue | undefined | - | |
pt:input:warnings | PtValue | undefined | - | |
pt:label | PtValue | undefined | - | |
pt:label:active | PtValue | undefined | - | |
pt:label:disabled | PtValue | undefined | - | |
pt:label:errors | PtValue | undefined | - | |
pt:label:has-value | PtValue | undefined | - | |
pt:label:highlighted | PtValue | undefined | - | |
pt:label:in-range | PtValue | undefined | - | |
pt:label:loading | PtValue | undefined | - | |
pt:label:open | PtValue | undefined | - | |
pt:label:outside | PtValue | undefined | - | |
pt:label:range-end | PtValue | undefined | - | |
pt:label:range-start | PtValue | undefined | - | |
pt:label:readonly | PtValue | undefined | - | |
pt:label:selected | PtValue | undefined | - | |
pt:label:today | PtValue | undefined | - | |
pt:label:warnings | PtValue | undefined | - | |
pt:message | PtValue | undefined | - | |
pt:message:active | PtValue | undefined | - | |
pt:message:disabled | PtValue | undefined | - | |
pt:message:errors | PtValue | undefined | - | |
pt:message:has-value | PtValue | undefined | - | |
pt:message:highlighted | PtValue | undefined | - | |
pt:message:in-range | PtValue | undefined | - | |
pt:message:loading | PtValue | undefined | - | |
pt:message:open | PtValue | undefined | - | |
pt:message:outside | PtValue | undefined | - | |
pt:message:range-end | PtValue | undefined | - | |
pt:message:range-start | PtValue | undefined | - | |
pt:message:readonly | PtValue | undefined | - | |
pt:message:selected | PtValue | undefined | - | |
pt:message:today | PtValue | undefined | - | |
pt:message:warnings | PtValue | undefined | - | |
pt:month | PtValue | undefined | - | |
pt:month-item | PtValue | undefined | - | |
pt:month-item:active | PtValue | undefined | - | |
pt:month-item:disabled | PtValue | undefined | - | |
pt:month-item:errors | PtValue | undefined | - | |
pt:month-item:has-value | PtValue | undefined | - | |
pt:month-item:highlighted | PtValue | undefined | - | |
pt:month-item:in-range | PtValue | undefined | - | |
pt:month-item:loading | PtValue | undefined | - | |
pt:month-item:open | PtValue | undefined | - | |
pt:month-item:outside | PtValue | undefined | - | |
pt:month-item:range-end | PtValue | undefined | - | |
pt:month-item:range-start | PtValue | undefined | - | |
pt:month-item:readonly | PtValue | undefined | - | |
pt:month-item:selected | PtValue | undefined | - | |
pt:month-item:today | PtValue | undefined | - | |
pt:month-item:warnings | PtValue | undefined | - | |
pt:month:active | PtValue | undefined | - | |
pt:month:disabled | PtValue | undefined | - | |
pt:month:errors | PtValue | undefined | - | |
pt:month:has-value | PtValue | undefined | - | |
pt:month:highlighted | PtValue | undefined | - | |
pt:month:in-range | PtValue | undefined | - | |
pt:month:loading | PtValue | undefined | - | |
pt:month:open | PtValue | undefined | - | |
pt:month:outside | PtValue | undefined | - | |
pt:month:range-end | PtValue | undefined | - | |
pt:month:range-start | PtValue | undefined | - | |
pt:month:readonly | PtValue | undefined | - | |
pt:month:selected | PtValue | undefined | - | |
pt:month:today | PtValue | undefined | - | |
pt:month:warnings | PtValue | undefined | - | |
pt:panel | PtValue | undefined | - | |
pt:panel:active | PtValue | undefined | - | |
pt:panel:disabled | PtValue | undefined | - | |
pt:panel:errors | PtValue | undefined | - | |
pt:panel:has-value | PtValue | undefined | - | |
pt:panel:highlighted | PtValue | undefined | - | |
pt:panel:in-range | PtValue | undefined | - | |
pt:panel:loading | PtValue | undefined | - | |
pt:panel:open | PtValue | undefined | - | |
pt:panel:outside | PtValue | undefined | - | |
pt:panel:range-end | PtValue | undefined | - | |
pt:panel:range-start | PtValue | undefined | - | |
pt:panel:readonly | PtValue | undefined | - | |
pt:panel:selected | PtValue | undefined | - | |
pt:panel:today | PtValue | undefined | - | |
pt:panel:warnings | PtValue | undefined | - | |
pt:prefix | PtValue | undefined | - | |
pt:prefix:active | PtValue | undefined | - | |
pt:prefix:disabled | PtValue | undefined | - | |
pt:prefix:errors | PtValue | undefined | - | |
pt:prefix:has-value | PtValue | undefined | - | |
pt:prefix:highlighted | PtValue | undefined | - | |
pt:prefix:in-range | PtValue | undefined | - | |
pt:prefix:loading | PtValue | undefined | - | |
pt:prefix:open | PtValue | undefined | - | |
pt:prefix:outside | PtValue | undefined | - | |
pt:prefix:range-end | PtValue | undefined | - | |
pt:prefix:range-start | PtValue | undefined | - | |
pt:prefix:readonly | PtValue | undefined | - | |
pt:prefix:selected | PtValue | undefined | - | |
pt:prefix:today | PtValue | undefined | - | |
pt:prefix:warnings | PtValue | undefined | - | |
pt:root | PtValue | undefined | - | |
pt:root:active | PtValue | undefined | - | |
pt:root:disabled | PtValue | undefined | - | |
pt:root:errors | PtValue | undefined | - | |
pt:root:has-value | PtValue | undefined | - | |
pt:root:highlighted | PtValue | undefined | - | |
pt:root:in-range | PtValue | undefined | - | |
pt:root:loading | PtValue | undefined | - | |
pt:root:open | PtValue | undefined | - | |
pt:root:outside | PtValue | undefined | - | |
pt:root:range-end | PtValue | undefined | - | |
pt:root:range-start | PtValue | undefined | - | |
pt:root:readonly | PtValue | undefined | - | |
pt:root:selected | PtValue | undefined | - | |
pt:root:today | PtValue | undefined | - | |
pt:root:warnings | PtValue | undefined | - | |
pt:sheet | PtValue | undefined | - | |
pt:sheet:active | PtValue | undefined | - | |
pt:sheet:disabled | PtValue | undefined | - | |
pt:sheet:errors | PtValue | undefined | - | |
pt:sheet:has-value | PtValue | undefined | - | |
pt:sheet:highlighted | PtValue | undefined | - | |
pt:sheet:in-range | PtValue | undefined | - | |
pt:sheet:loading | PtValue | undefined | - | |
pt:sheet:open | PtValue | undefined | - | |
pt:sheet:outside | PtValue | undefined | - | |
pt:sheet:range-end | PtValue | undefined | - | |
pt:sheet:range-start | PtValue | undefined | - | |
pt:sheet:readonly | PtValue | undefined | - | |
pt:sheet:selected | PtValue | undefined | - | |
pt:sheet:today | PtValue | undefined | - | |
pt:sheet:warnings | PtValue | undefined | - | |
pt:spinner | PtValue | undefined | - | |
pt:spinner:active | PtValue | undefined | - | |
pt:spinner:disabled | PtValue | undefined | - | |
pt:spinner:errors | PtValue | undefined | - | |
pt:spinner:has-value | PtValue | undefined | - | |
pt:spinner:highlighted | PtValue | undefined | - | |
pt:spinner:in-range | PtValue | undefined | - | |
pt:spinner:loading | PtValue | undefined | - | |
pt:spinner:open | PtValue | undefined | - | |
pt:spinner:outside | PtValue | undefined | - | |
pt:spinner:range-end | PtValue | undefined | - | |
pt:spinner:range-start | PtValue | undefined | - | |
pt:spinner:readonly | PtValue | undefined | - | |
pt:spinner:selected | PtValue | undefined | - | |
pt:spinner:today | PtValue | undefined | - | |
pt:spinner:warnings | PtValue | undefined | - | |
pt:suffix | PtValue | undefined | - | |
pt:suffix:active | PtValue | undefined | - | |
pt:suffix:disabled | PtValue | undefined | - | |
pt:suffix:errors | PtValue | undefined | - | |
pt:suffix:has-value | PtValue | undefined | - | |
pt:suffix:highlighted | PtValue | undefined | - | |
pt:suffix:in-range | PtValue | undefined | - | |
pt:suffix:loading | PtValue | undefined | - | |
pt:suffix:open | PtValue | undefined | - | |
pt:suffix:outside | PtValue | undefined | - | |
pt:suffix:range-end | PtValue | undefined | - | |
pt:suffix:range-start | PtValue | undefined | - | |
pt:suffix:readonly | PtValue | undefined | - | |
pt:suffix:selected | PtValue | undefined | - | |
pt:suffix:today | PtValue | undefined | - | |
pt:suffix:warnings | PtValue | undefined | - | |
pt:year | PtValue | undefined | - | |
pt:year-item | PtValue | undefined | - | |
pt:year-item:active | PtValue | undefined | - | |
pt:year-item:disabled | PtValue | undefined | - | |
pt:year-item:errors | PtValue | undefined | - | |
pt:year-item:has-value | PtValue | undefined | - | |
pt:year-item:highlighted | PtValue | undefined | - | |
pt:year-item:in-range | PtValue | undefined | - | |
pt:year-item:loading | PtValue | undefined | - | |
pt:year-item:open | PtValue | undefined | - | |
pt:year-item:outside | PtValue | undefined | - | |
pt:year-item:range-end | PtValue | undefined | - | |
pt:year-item:range-start | PtValue | undefined | - | |
pt:year-item:readonly | PtValue | undefined | - | |
pt:year-item:selected | PtValue | undefined | - | |
pt:year-item:today | PtValue | undefined | - | |
pt:year-item:warnings | PtValue | undefined | - | |
pt:year:active | PtValue | undefined | - | |
pt:year:disabled | PtValue | undefined | - | |
pt:year:errors | PtValue | undefined | - | |
pt:year:has-value | PtValue | undefined | - | |
pt:year:highlighted | PtValue | undefined | - | |
pt:year:in-range | PtValue | undefined | - | |
pt:year:loading | PtValue | undefined | - | |
pt:year:open | PtValue | undefined | - | |
pt:year:outside | PtValue | undefined | - | |
pt:year:range-end | PtValue | undefined | - | |
pt:year:range-start | PtValue | undefined | - | |
pt:year:readonly | PtValue | undefined | - | |
pt:year:selected | PtValue | undefined | - | |
pt:year:today | PtValue | undefined | - | |
pt:year:warnings | PtValue | undefined | - | |
range | boolean | undefined | false | Selects a range of dates between two dates. It selects all of the days between start and end. |
readonly | boolean | undefined | false | Sets the input in a readonly state. |
required | boolean | undefined | false | Sets the input as required. |
reverse | boolean | undefined | false | Reverses the layout. Applicable in every direction the order of the label and the input is swapped. |
seconds | boolean | undefined | false | Adds the seconds segment (requires |
selectable | ((date: string) => boolean) | undefined | - | Function that accepts a |
step | number | undefined | 1 | Minute granularity for the calendar's minute column and arrow stepping
(requires |
time | string | string[] | null | undefined | - | Companion model for the time part ( |
transitionDuration | number | undefined | - | Transition duration, in milliseconds, for the popover appearance. |
type | DatePickerType | undefined | "date" | What the field edits, and therefore its segments and emitted shape.
- |
utc | boolean | undefined | false | Emits values as UTC ISO strings ( |
variant | InputVariantType | undefined | 'outline' | Visual variant of the field box — the same names and tokens as the
|
warnings | string | string[] | undefined | - | Warning messages to display beneath the field, in their own |
v-model
Values kept in sync through v-model.
| Name | Type | Description |
|---|---|---|
modelValue | string | string[] | null | |
time | string | string[] | null | undefined |
Events
| Name | Type | Description |
|---|---|---|
active | (event: "active"): void | |
error | (event: "error", error: DatePickerInputError): void | |
focus | (event: "focus", event: FocusEvent): void | |
hidden | (event: "hidden"): void | |
hide | (event: "hide"): void | |
inactive | (event: "inactive"): void | |
show | (event: "show"): void | |
shown | (event: "shown"): void | |
update:modelValue | (event: "update:modelValue", value: string | string[] | null): void | |
update:time | (event: "update:time", value: string | string[] | null): void |
Slots
The listed properties are the ones exposed to the slot scope.
| Name | Type | Description |
|---|---|---|
<YYYY_MM_DD> | BbCalendarDaySlotProps | One date's button label (e.g. |
append | object | Content rendered after the date fields, at the end of the field box (before the calendar toggle button). |
append-outer | object | Content rendered after the entire date picker control, outside the input chrome. |
append:<YYYY_MM_DD> | BbCalendarDaySlotProps | Content under one date's cell; beats |
append:day | { first: boolean; item: Dayjs; label: string; last: boolean; middle: boolean; outside: boolean; selected: boolean; } | Appends content below each calendar day. |
day | { first: boolean; item: Dayjs; label: string; last: boolean; middle: boolean; outside: boolean; selected: boolean; } | Replaces the day button label inside each calendar day. |
description | BbDatePickerInputDescriptionSlotProps | Replaces the description text. Provided alone (no |
label | BbDatePickerInputLabelSlotProps | Replaces the default label text rendered above the date picker. |
prefix | object | Inline content rendered at the start of the input field area, before the date fields. |
prepend | object | Content rendered before the date fields, at the start of the field box. |
prepend-outer | object | Content rendered before the entire date picker control, outside the input chrome. |
suffix | object | Inline content rendered at the end of the input field area, after the date fields. |
Changes from v2
Props removed or renamed in 3.0. If you are coming from v2, the answer is here.
allowWritingdisableWritingfails silentlydatetimetypefails silentlyhasWarninghasWarningsfails silentlyhidePopoverdisableCalendarfails silentlyoffcanvasPropsoffCanvasPropsfails silentlywidthremovedfails silently