Skip to content

Field

A container for form controls with label and description.

Examples

Default

We'll never share your email with anyone else.

vue
<Field>
  <FieldLabel>Email</FieldLabel>
  <Input type="email" placeholder="Email" />
  <FieldDescription>
    We'll never share your email with anyone else.
  </FieldDescription>
</Field>

Props

Field

PropTypeDefaultDescription
orientation'horizontal' | 'vertical' | 'responsive''vertical'The orientation of the field

Slots

Field

SlotDescription
defaultThe field content

FieldLabel

SlotDescription
defaultThe label content

FieldDescription

SlotDescription
defaultThe description content

FieldError

SlotDescription
defaultThe error message content