Form layout
Compose fields from text inputs, choice controls, and actions. In Nuxt / PLAI use Nuxt UI form components (UFormField, UInput, etc.).
| Element | Source |
|---|---|
| Labels, hints, field spacing | Nuxt UI |
| Text inputs, textarea, select | Nuxt UI — focus ring CI |
| Checkbox / radio checked state | CI brand blue |
| Switch track (on) | CI brand blue |
| Save / Cancel buttons | CI primary · Nuxt UI outline |
Live examples
Section titled “Live examples”Single field
Section titled “Single field”Shown to teammates on shared cases.
Validation
Section titled “Validation”Organisation name is required.
Choice group
Section titled “Choice group”Actions row
Section titled “Actions row”
CI
Nuxt UI
<div class="ci-field"> <label class="ci-label" for="name">Display name</label> <input id="name" class="ci-input" type="text" /> <p class="ci-hint">Shown to teammates on shared cases.</p></div>Accessibility
Section titled “Accessibility”- One
<label>per control;for/idmust match. - Group related radios or checkboxes in
<fieldset>with<legend>. - Errors:
aria-invalid="true"on the control +aria-describedbyon the error paragraph’sid. - Tab order: fields top-to-bottom, then primary action before secondary.