Skip to Content
SmartUI

Textarea

Multi-line text input with an optional character counter.

Optional.0/300

Usage

import { Textarea } from '@smartui/react';
import '@smartui/react/styles.css';

When to use

  • Free text longer than one line: notes, reasons.

When not to use

  • Short single-line input. Use Field.

Props

PropTypeDefaultDescription
labelstring-Always visible above the control.
helperTextstring-Help text below the control.
errorMessagestring-Shown when isInvalid; replaces the helper text.
variant'raised' | 'flat''raised'Raised on the canvas, flat inside a white card.
isInvalid, isDisabled, isRequiredbooleanfalse
maxLengthnumber-Shows the counter.
rowsnumber3

Accessibility

  • State the limit up front; do not reveal it only after it is exceeded.

On this page