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
modelValuestring—ISO date used by v-model.
size'sm' | 'md' | 'lg''md'Control size.
min / maxstring—ISO date bounds.
clearablebooleanfalseAllows clearing.
inlinebooleanfalseAlways displays the calendar.
highlightDatesstring[]—ISO dates to emphasize.
displayMonthstring—Controlled YYYY-MM display month.
disabledbooleanfalseDisables interaction.
error / errorMessageboolean / string—Validation state and copy.
id / inputIdstring—ID bound to the combobox trigger.
namestring—Native form field name.
requiredbooleanfalseRequired state.
autocompletestring—Native form autocomplete token.
ariaLabel / ariaLabelledbystring—Accessible name or referenced label id.
ariaDescribedby / ariaDetails / ariaErrorMessagestring—Accessible supporting and validation references.

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.