Date Picker

Select dates, date ranges, and date-time values.

Date Picker

Default

Use Date Picker for date input. The example also shows custom color and floating labels for single and range triggers.

Labels

Use label for a persistent label. Add label-float to move it above the value on focus or after a date is selected. Range pickers can set start-label and end-label independently.

Size

Compare the inherited small, default, and large component sizes.

Shape

Use shape="square" to apply square geometry to both the input trigger and teleported calendar panel.

Date and time

Set type="datetime" to pick date and time. With auto-apply-now, clicking Now immediately updates v-model and closes the popup. When disabled, the current time remains staged until confirmation. The same default can be configured through SConfigProvider.

Timezone

timezone accepts an IANA zone. Both pickers below display 2026-08-05 14:00:22, while Shanghai and New York map that wall time to different absolute milliseconds. The first inherits SConfigProvider; the second overrides it locally. Daylight-saving transitions follow the runtime IANA data.

Time

Use s-time-picker when only a time value is needed. It shares the same formatting, editable input, clear action, and time-column selection behavior.

Date range

Set type="daterange" to pick a date range; there is no separate Date Range Picker component. An empty value opens on the current and following months. Selecting the end date only updates the draft, and v-model changes after Confirm.

Other types

Month, quarter, year and week pickers.

Date time range

Set type="datetimerange" to pick a date-time range with separate start/end time panels.

Shortcuts

Use shortcuts to provide quick selection options.

Disabled date

Use disabled-date to disable specific dates.

Date markers

Use festival-method to add a compact label, notice dot, or custom cell style for business dates without changing the picker theme.

Week rules

Week selects an entire row. Hover or focus previews the row; Up/Down moves focus and Enter or Space selects it. A week containing a disabled date cannot be selected. Current days, months, quarters, years, and weeks share a subtle theme-color treatment; solid backgrounds indicate selection. Global firstDayOfWeek controls the first weekday, while firstWeekContainsDate specifies the January date that belongs to week one (default 4). Week numbers use the week-year, which can differ from the calendar year. Local start-day overrides the first weekday for one component.

Loading

Set loading while options or values are being loaded. The trailing indicator matches Input and Select; current values stay visible and interaction resumes when loading ends.

API

PROPS

Property
Type
Values
Description
default
Example
More
loading
boolean
—
Show the shared trailing loader, preserve the value, and block editing, clearing, and popup interaction.
false
shape
String
rounded | square
Apply rounded or square geometry to the input and picker panel.
rounded
color
String
primary | success | danger | warn | warning | dark | text | light | secondary | RGB | RGBA | HEX | HSL | HSLA
Set the accent color shared by the trigger and picker panel.
—
size
String
small | medium | large
Set the trigger input size.
—
label-float
Boolean
true | false
Float the input label on focus or when it has a value.
false
label
String
label text
Set the label for a single picker or range start input.
—
start-label
String
label text
Set the range start input label.
—
end-label
String
label text
Set the range end input label.
—
auto-close
Boolean
true | false
Close the panel automatically after a complete selection.
false
clearable
Boolean
true | false
Show an action that clears the selected value.
true
editable
Boolean
true | false
Allow the trigger input to accept typed dates.
true
separator
String
separator text
Set the text displayed between range values.
-
auto-apply-now
Boolean
true | false
Commit the current time and close after clicking Now; a component value overrides ConfigProvider.
ConfigProvider or the picker's existing behavior
—
v-model
Date | string | number | range | array | null
Bind the selected date value or values.
—
type
String
date | datetime | daterange | datetimerange | month | quarter | year | week
picker type
date
label-format
String
Day.js format tokens | timestamp
Control displayed text, emitted value, or datetime time segment independently; timestamp emits milliseconds as a number.
type-based
value-format
String
Day.js format tokens | timestamp
Control displayed text, emitted value, or datetime time segment independently; timestamp emits milliseconds as a number.
type-based
time-format
String
Day.js format tokens | timestamp
Control displayed text, emitted value, or datetime time segment independently; timestamp emits milliseconds as a number.
type-based
timezone
String
IANA zone such as Asia/Shanghai
Interpret wall time and convert absolute values; a component value overrides ConfigProvider.
ConfigProvider or system zone
multiple
Boolean
—
Choose multiple dates from the calendar. Tags collapse to +N according to available width; remove individual tags or hover to read the full date list.
false
limit-count
Number
—
Toggle multiple values and optionally cap the selected count.
—
show-clear-button
Boolean
true | false
Control footer action visibility.
true
show-confirm-button
Boolean
true | false
Control footer action visibility.
true
min-date
Date | string | number
—
Restrict selectable dates with inclusive lower and upper bounds.
—
max-date
Date | string | number
—
Restrict selectable dates with inclusive lower and upper bounds.
—
start-date
Date | string | number
—
Restrict selectable dates with inclusive lower and upper bounds.
—
end-date
Date | string | number
—
Restrict selectable dates with inclusive lower and upper bounds.
—
default-date
| [, ]
—
Set initial panel date and time when the model is empty.
—
default-time
| [, ]
—
Set initial panel date and time when the model is empty.
—
start-day
Number
0-6
First weekday (0 Sunday, 1 Monday). Inherits global firstDayOfWeek; defaults to Monday.
1
select-day
Number
0-6
Return this weekday within the selected week; defaults to the first day of that week.
—
time-config
Object
hours | minutes | seconds | *DisabledMethod
Configure time-column values and disabled options.
—
popup-config
Object
placement | transfer | width | height | zIndex | className
Configure popup placement, mounting, size, layer and class.
—

EVENTS

Event
Type
Description
default
Example
More
update:modelValue
Fire when the selected date or date range is committed.
—
—
change
Fire when the selected date or date range is committed.
—
—
focus
FocusEvent
Fire when the date input gains or loses focus.
—
—
blur
FocusEvent
Fire when the date input gains or loses focus.
—
—
clear
—
Fires after clearing the selected value.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied