Component size, gzipped: 24kb

Textarea

Loading
API

Examples

Basic usage

States



Sizes



Allow the user to resize

By default, Textarea is not resizeable. However, you can use overrides as in the example above to supply minimum and maximum dimensions for the component. This will allow users to resize the Textarea within the boundaries you define.

Focus and ref


Stateful (uncontrolled) usage

As with many of our components, there is also an uncontrolled version, StatefulTextarea, which manages its own state.

API

Textarea props

Textarea exports

You can import this module like so:

import {Textarea} from 'baseui/textarea'

It exports the following components or utility functions: