THEME
MOTION
HAPTIC
SOUND

TEXTAREA

Multi-line monospace text input. Resize handle disabled by default to match the terminal chrome.

Live demo

Import

import { TextArea } from '@cathode-ui/react';

Props

Name Type Default Required Description
value string — yes
onChange (v: string) => void — yes
placeholder string — —
disabled boolean false —
rows number 4 —
maxLength number — — Shows a character counter below when set.
resizable boolean false —
weight 'regular'|'bold' regular — Font weight of the typed text.

Examples

basic

<TextArea value={notes} onChange={setNotes} placeholder="ADD NOTES…" />

counted

<TextArea value={bio} onChange={setBio} maxLength={160} />

Accessibility

Role: textbox

Feedback

Hapticnone
Soundnone

← All components