Components
← All components

Form Field

stimeo--form-field

Wires a control to its description and error: aria-describedby, aria-invalid, and aria-errormessage.

The stimeo--form-field controller is the association substrate behind a form control. It assigns ids to the description and error regions and composes the control's aria-describedby, toggles aria-invalid, and points aria-errormessage at the live error region. setError (via an action param) and clearError drive the invalid state and dispatch stimeo--form-field:validate. It does no validation itself and ships no styling — the look is owned by this Playground.

running

We'll send a confirmation message.

This demo toggles the field's error state — the ARIA wiring this controller owns. It does not validate input or clear the value. "Show error" marks the field invalid and announces the message via a role="alert" region; "Clear error" returns it to the valid state.