Skip to content

@agala-labs/ui

Date Picker

Selects an ISO date through a collision-aware top-layer popover or inline calendar.

Examples

Default
<AgalaDatePicker v-model="date" min="2026-01-01" clearable />

Import

import { AgalaDatePicker } from '@agala-labs/ui'

API

PropTypeDefaultDescription
modelValuestringISO date used by v-model.
size'sm' | 'md' | 'lg''md'Control size.
min / maxstringISO date bounds.
clearablebooleanfalseAllows clearing.
inlinebooleanfalseAlways displays the calendar.
highlightDatesstring[]ISO dates to emphasize.
displayMonthstringControlled YYYY-MM display month.
disabledbooleanfalseDisables interaction.
error / errorMessageboolean / stringValidation state and copy.

Events

  • update:modelValue(date: string)
  • update:displayMonth(month: string)

Accessibility

Calendar grid supports arrow keys, Home/End, Enter, Space, and Escape.

Released under the MIT License.