Skip to content

Textarea

Use <textarea> for longer free-form text. In Nuxt / PLAI use UTextarea.

Element Source
Border, surface, placeholder, disabled Nuxt UI zinc / UInput defaults
Focus border and ring CI --ci-color-text-link
Error state Nuxt UI semantic red

Optional — visible to colleagues on this case.

Summary is required.

<label class="ci-label" for="notes">Notes</label>
<textarea id="notes" class="ci-textarea" rows="4" placeholder="Add context…"></textarea>
  • Set an explicit rows value so the control has a sensible default height before CSS loads.
  • resize: vertical is applied in the pattern CSS — avoid disabling resize unless layout requires it.
  • Same aria-invalid / aria-describedby pattern as text fields.