Give independent choices a shared legend and description.
Example
<fieldsetclass="ilui-form-fieldset ilui-example ilui-field-examples"aria-describedby="ilui-checkbox-fields-description">
<legendclass="ilui-field__label">Invoice emails</legend>
<pclass="ilui-field__hint"id="ilui-checkbox-fields-description">Choose which updates to receive.</p>
Choice cards
Use a radio group with descriptions when people need to compare options.
Give Field one native control or a component that forwards its id and ARIA attributes. Field connects its label, description, and error to the control.
HTML
Place a visible label, control, and optional help or error in ilui-field. Associate messages with the control through aria-describedby.
Groups
Use 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.
Layout
Use orientation="responsive" on Field inside a responsive FieldGroup to place the label and control side by side when the group has room.
Validation
Pass 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.