Skip to Content
DocsResourcesShowcase

Textarea

Used to enter multiple lines of text.

SourceStorybookRecipe

import { Textarea } from '@saas-ui/react/textarea'
<Textarea placeholder="..." />

Use the variant prop to change the appearance of the textarea.

Use the size prop to change the size of the textarea.

Pair the textarea with the Field component to add helper text.

Max 500 characters.
Max 500 characters.

Pair the textarea with the Field component to add error text.

Field is required
Field is required

Compose the textarea with the Field component to add a label, helper text, and error text.

Here's an example of how to integrate the textarea with react-hook-form.

This is your public display name.
A short description of yourself

Use the resize prop to control the resize behavior of the textarea.

Here's an example of how to integrate the react-textarea-autosize package to make the textarea autoresize.

PropDefaultType
colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

The color palette of the component

size 'md'
'lg' | 'md' | 'sm' | 'xs'

The size of the component

variant 'outline'
'outline' | 'filled' | 'flushed'

The variant of the component

Previous

Tag

Next

Timeline