Skip to content

Textarea

Multi-line input, vertically resizable, on the shared control treatment.

Prop Type Notes
mono boolean Monospace body — for prompts and literal content.
className string

Other props pass through to the root element (React.TextareaHTMLAttributes<HTMLTextAreaElement>).

Preview

Declarations

TypeScript
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
  /** Monospace body — for prompts and literal content. */
  mono?: boolean;
  className?: string;
}

/**
 * Multi-line input, vertically resizable, on the shared control treatment.
 */
export function Textarea(props: TextareaProps): React.JSX.Element;