Skip to content

@agala-labs/ui

Input

Captures a single line of text with optional icons and validation.

Examples

Default
<AgalaInput v-model="email" type="email" icon-start="mail" placeholder="you@example.com" />

Import

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

API

PropTypeDefaultDescription
modelValuestringValue used by v-model.
size'sm' | 'md' | 'lg''md'Control size.
variant'default' | 'ghost''default'Visual treatment.
typestring'text'Native input type.
placeholderstringPlaceholder text.
iconStart / iconEndstringAgala icon names.
iconEndActionablebooleanfalseMakes the trailing icon interactive.
errorbooleanfalseSets invalid styling.
errorMessagestringInline error copy.
disabled / readonlybooleanfalseNative input states.
inputIdstringID bound to the native input; use for FormField htmlFor.
ariaLabelstringAccessible name bound to the native input.
ariaLabelledbystringReferenced label id bound to the native input.

Events

  • update:modelValue(value: string)
  • icon-end-click

Accessibility

For a visible label, pair with FormField. Invalid state is exposed with aria-invalid. inputId, ariaLabel, and ariaLabelledby bind to the native input, never the wrapper.

Released under the MIT License.