Field

Laravel-aware field composition with labels, help text, validation errors and set semantics

View documentation

Field wrapper

hw:field owns the name and shares it with the control, which derives its id, its Laravel error key, its old() value and its ARIA wiring from it.

We will only use this for account notifications.

Validation, end to end

Submit the form empty. The failed controls gain aria-invalid and aria-describedby, and hw:field.error fills the element it keeps in the DOM precisely so that reference never dangles.

At least 3 characters.

Manual layout

Set :error="false" and compose field.label, field.description, the control and field.error in whatever order the design needs.

CPF or CNPJ. The mask switches on length.

Horizontal controls

orientation="horizontal" puts the control beside its text. Use field.content + field.title for a switch, and field.label when the control accepts a real label association.

Marketing emails

Receive occasional product updates.

Field set, group and separator

field.set adds a semantic legend, field.group stacks related fields, and field.separator marks a logical break between them.

Billing address

The address associated with your payment method.

Or

When the submitted name is not the validation key

Name derivation is deterministic — items[0][name] becomes id items-0-name and error key items.0.name. Override with error-key only when the two genuinely differ.