Forms / Date picker

Forms

Date picker

A date field and the month grid that opens from it.

import { EcoDatePicker } from "vue-ecosphere"

Date field

Click the field or press ArrowDown to open the calendar; pick a day and Apply. Typing a date works too.

DD/MM/YYYY

Value: "2026-08-08"

Empty

Value: ""

Range

Each end bounds the other with min and max.

Value: 2026-08-01 → 2026-08-31

API

NameTypeDefaultDescription
v-modelstring""ISO date, YYYY-MM-DD. The field shows DD/MM/YYYY and stays typeable.
v-model:openbooleanfalseWhether the calendar is open.
min / maxstring (ISO)—Days outside the range are disabled.
localestring"en-GB"Month name, weekday letters and day labels.
todaystring (ISO)—Override today (is-today), e.g. for a fixed demo.
todayLabel / applyLabelstring"Today" / "Apply"Footer actions. Apply commits the chosen day.
label / required / hint / error / invalid / first / disabled / placeholder / id——Field props. Put the format in the hint, not the placeholder.
Keyboard——ArrowDown opens; arrows move by day/week, Home/End the week, PageUp/PageDown the month (Shift: year), Enter picks, Escape closes.