Skip to content

@agala-labs/ui

Select

Selects one or more values from a searchable, collision-aware top-layer listbox.

Examples

Default
<AgalaSelect v-model="country" :options="countries" searchable clearable />

Import

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

API

PropTypeDefaultDescription
optionsSelectOption[]Required option collection.
modelValuestring | string[]Selected value(s).
multiplebooleanfalseEnables multi-select.
searchablebooleanfalseShows filtering input.
clearablebooleanfalseAllows clearing the selection.
loadingbooleanfalseShows a loading state.
size'sm' | 'md' | 'lg''md'Control size.
placeholderstringEmpty selection copy.
maxDisplayednumberMaximum visible chips.
maxSelectionsnumberSelection limit.
error / errorMessageboolean / stringValidation state and copy.

Events

  • update:modelValue(value)
  • search(query: string)

Accessibility

Implements combobox/listbox semantics with keyboard navigation, selected state, and expanded state.

Released under the MIT License.