Skip to content

@agala-labs/ui

Form Field

Associates a control with its label, helper copy, and error message.

Examples

Default

Visible to everyone in your organization.

<AgalaFormField label="Email" html-for="email" required>
  <AgalaInput id="email" v-model="email" />
</AgalaFormField>

Import

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

API

PropTypeDefaultDescription
labelstringVisible field label.
helperstringSupporting text.
errorstringValidation message.
htmlForstringID of the nested control.
requiredbooleanfalseMarks the label as required.
disabledbooleanfalseStyles the field as disabled.

Slots

  • default — form control

Accessibility

Set htmlFor to the nested control ID; keep validation copy specific and recoverable.

Released under the MIT License.