Field

Compose accessible fields with labels, controls, help text, and validation. Group related fields under a shared legend.

Example
Billing details

Choose where your next invoice goes.

Receipts and invoices will be sent here.

Sets the currency for future invoices.

Include a purchase order number or a note for your finance team.


Delivery preferences

Choose which billing updates you receive.

Setup

Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

Responsive horizontal fields

Stack the label and control in narrow groups and align them side by side when the group has room.

Example

Receipts and invoices will be sent here.

Sets the currency for future invoices.

Field with validation

Associate both help text and the correction with the input.

Example

Receipts and invoices will be sent here.

Enter a complete email address.

Textarea field

Keep guidance beside a multiline control.

Example

Include a purchase order number or a note for your finance team.

Select field

Explain what a selection changes.

Example

Sets the currency for future invoices.

Checkbox group

Give independent choices a shared legend and description.

Example
Invoice emails

Choose which updates to receive.

Choice cards

Use a radio group with descriptions when people need to compare options.

Example
Invoice delivery

Switch field

Place a switch beside its label and help text.

Example

Range field

Name both controls in a range and connect them to the shared hint.

Example
Estimate range

Adjust the minimum and maximum estimated hours.

Right-to-left fields

Set language and direction on the group so labels and controls follow the reading order.

Example

يظهر هذا الاسم في مساحة العمل.

Usage

React and VueGive Field one native control or a component that forwards its id and ARIA attributes. Field connects its label, description, and error to the control.
HTMLPlace a visible label, control, and optional help or error in ilui-field. Associate messages with the control through aria-describedby.
GroupsUse FieldSet with a legend and optional description to group related controls. Use FieldGroup for spacing and FieldSeparator between sections. The HTML example uses native fieldsets and legends.
LayoutUse orientation="responsive" on Field inside a responsive FieldGroup to place the label and control side by side when the group has room.
ValidationPass an error after validation fails. Field marks the control invalid and associates the error with it. For HTML, set aria-invalid on the control and connect the message explicitly.