Ask Natuna

Ask about the design system

Hi, I am Natuna.

Ask me about the design system: components, tokens, statuses, and how to use them.

Natuna can be wrong. The docs are the source of truth.

Skip to content
  • IntroductionPage
  • Ask NatunaAsk about the design systemPage
  • FoundationColor, type, number, effectPage
  • Components overviewPage
  • ThemesLight and dark modePage
  • NamingProperty and page namesPage
  • Privacy statementPage
  • Text-safe stepsFirst AA and AAA step per color rampSection
  • AccessibilityWCAG 2.2 AAA rulesSection
  • Dark modeThemesSection
  • Using it todayFigma file and React codeSection
  • Component statusDesign status and In ReactSection

Arrow keys to move, Enter to open, Esc to close.

Textarea

A multi-line text field for longer answers.

Status
ReadyBuild day 15 of 21
Code
In React
Role
Form

Usage

This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.

Up to 500 characters0/500

Pastes as editable layers. Shadows are not exported.

import { useState, type ChangeEvent } from "react";
import { Textarea } from "@/ui";

export default function TextareaDemo() {
  const [note, setNote] = useState<string>("");

  return (
    <Textarea
      label="Approval notes"
      placeholder="Write a note…"
      maxLength={500}
      value={note}
      onChange={(e: ChangeEvent<HTMLTextAreaElement>) => setNote(e.target.value)}
    />
  );
}

Variants and states

Every specimen is the real component from src/ui, held in one state.

size sm64px tall
0/500
29/500
A note is required0/500
0/500
size md88px tall
0/500
29/500
A note is required0/500
0/500
size lg120px tall
0/500
29/500
A note is required0/500
0/500

Pastes as editable layers. Shadows are not exported.

Props

label
string · default none
Required.
hint
string · default none
Helper text.
error
string · default none
Marks the field invalid and replaces the hint.
size
"sm" | "md" | "lg" · default "md"
Height 64, 88, 120.
showCounter
boolean · default true
Shows used/max. Needs maxLength.
...rest
TextareaHTMLAttributes · default none
value, onChange, maxLength, placeholder, disabled, and so on.

Figma to code

Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.

📐 Size
size
sm, md, or lg.
🎯 State
value, error, disabled
Hover and focus come from the browser.
Show Label, Label
label
Always shown in code.
Show Helper Text, Helper Text
hint
Pass to show.
Placeholder
placeholder
Native.
Show Counter
showCounter
Needs maxLength.

Accessibility

What the code in src/ui does today, and what it leaves to you.

Keyboard

  • A native textarea.

Screen readers

  • Label linked with for. The hint, error and counter are linked with aria-describedby.

What you still need to do

  • maxLength stops typing at the limit; say the limit in the hint so it is not a surprise.

When to use

Notes, descriptions, and messages.

Do and don't

Do

  • Size it to the expected length of the answer.
  • Show a character count when there is a limit.

Don't

  • Use for single-line answers.
  • Disable resizing without a reason.

4 of 16 other atoms, same role and ready ones first.

See all components

Status reflects the component tracker snapshot of 29 October 2026.