Skip to Content
ComponentsTextarea

Textarea

The Textarea component supports labels, helper text, error states, and resize control.

Preview

States
Variants

Helpful hint about this field

Import

import { Textarea } from '@chloe0592/pebble'

Usage

<Textarea placeholder="Enter text..." /> <Textarea label="Bio" placeholder="Tell us about yourself" /> <Textarea label="Notes" helperText="Max 500 characters" placeholder="Add a note..." /> <Textarea label="Description" errorText="Description is required" placeholder="Enter description" />

Props

PropTypeDefaultDescription
labelstringLabel displayed above the textarea
helperTextstringMuted hint text below the textarea
errorTextstringError message; also sets error styling
resize'none' | 'vertical' | 'both''vertical'Controls resize handle
disabledbooleanfalseDisables interaction

All other props are forwarded to the underlying <textarea> element.

Last updated on