zalify-ui

Textarea

A form input component for entering multi-line text.

React

Usage

Examples

Variants

Use the variant prop to change the visual style of the textarea.

React

Sizes

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

React

Resize

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

React

To limit the maximum height (or rows) of the textarea, we recommend using the maxHeight prop and setting the value to a lh unit.

Autoresize

Use the autoresize prop to make the textarea autoresize vertically as you type.

React

Field

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

A short comment about your experience with our product.

React

Required

Pass the required prop to Field.Root and use the Field.RequiredIndicator to indicate that the textarea is required.

React

Invalid

Pass the invalid prop to the Field.Root and use the Field.ErrorText to indicate that the textarea is invalid.

There was an error with your submission

React

Ref

Here's how to access the underlying element reference

Props