@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
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue | string | — | Value used by v-model. |
size | 'sm' | 'md' | 'lg' | 'md' | Control size. |
variant | 'default' | 'ghost' | 'default' | Visual treatment. |
type | string | 'text' | Native input type. |
placeholder | string | — | Placeholder text. |
iconStart / iconEnd | string | — | Agala icon names. |
iconEndActionable | boolean | false | Makes the trailing icon interactive. |
error | boolean | false | Sets invalid styling. |
errorMessage | string | — | Inline error copy. |
disabled / readonly | boolean | false | Native input states. |
id / inputId | string | — | ID bound to the native input; inputId is the legacy alias. |
name | string | — | Native form field name. |
required | boolean | false | Native required state. |
autocomplete | string | — | Native autocomplete token. |
ariaLabel / ariaLabelledby | string | — | Accessible name or referenced label id. |
ariaDescribedby / ariaDetails / ariaErrorMessage | string | — | Accessible supporting and validation references. |
ariaInvalid / ariaRequired | boolean | string | — | Explicit ARIA validation state. |
class | string | — | Class applied to the native input. |
wrapperClass | string | — | Class applied to the outer input wrapper. |
Events
update:modelValue(value: string)icon-end-click
Accessibility
For a visible label, pair with FormField. Form and ARIA attributes bind to the native input, never the wrapper; inputId remains a backwards-compatible alias for id.