Datepicker
PDatepicker wraps PInput and provides a calendar popup for selecting a single date.
Demo
Usage
<PDatepicker v-model="date" min="2024-01-01" max="2024-12-31">
Props
| Prop | Type | Default | Notes |
|---|
value | String | Number | null | YYYY-MM-DD date string. |
min | String | null | Minimum selectable date. |
max | String | null | Maximum selectable date. |
popupPosition | String | bottom | top, left, right, bottom. |
Events
| Event | Payload | Description |
|---|
input | String | null | Emits selected date string. |
valid | Boolean | Validity status from the inner input. |
Slots
| Slot | Description |
|---|
| default | Input label text. |