Zephora UI

Form

Textarea

Multi-line text input with three sizes, invalid state and an optional auto-resize mode that grows with its content.

Import

import { Textarea } from "@zephora/react";

Examples

Basic

Auto-resize

`autoResize` grows the textarea to fit its content as you type.

Invalid

API

Textarea props

PropTypeDefaultDescription
size"sm" | "md" | "lg""md"Typography / padding scale.
invalidbooleanfalseMarks the field invalid: sets aria-invalid and error styling.
autoResizebooleanfalseAutomatically grows the textarea to fit its content.
rowsnumber3Initial number of visible text rows.
unstyledbooleanfalseHeadless mode — drops Zephora classes so your own CSS can style it.
…restTextareaHTMLAttributes<HTMLTextAreaElement>All native textarea props (value, onChange, placeholder…) are forwarded.