Components

Explore live examples and usage guidance for interface components styled with the active colour palette.

Inputs

Textarea

Give users room to enter and review multiple lines of text.

Anatomy

  1. Field label
  2. Multiline input
  3. Character count

Configuration

Textarea states

Hover over an enabled control or use Tab to see its hover and focus styles.

0 / 120 characters

Design tokens used

CategoryTokenValueWhere it’s used
Colour--cc-foreground—Field label
--cc-muted-foreground—Character counts and disabled value
--cc-subtle-foreground—Placeholder text
--cc-surface-muted—Disabled textarea background
--cc-primary—Editable field border on focus
--cc-critical-soft-foreground—Validation message
--cc-critical-border—Invalid field border
--cc-field-background—Editable field background
--cc-field-foreground—Entered value
--cc-field-border—Field border
--cc-field-hover-border—Editable field border on hover
--cc-focus-ring—Keyboard focus ring