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
| Name | Type | Default | Description |
|---|---|---|---|
v-model | string | "" | ISO date, YYYY-MM-DD. The field shows DD/MM/YYYY and stays typeable. |
v-model:open | boolean | false | Whether the calendar is open. |
min / max | string (ISO) | — | Days outside the range are disabled. |
locale | string | "en-GB" | Month name, weekday letters and day labels. |
today | string (ISO) | — | Override today (is-today), e.g. for a fixed demo. |
todayLabel / applyLabel | string | "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. |