Forms & Inputs
Textarea
Multi-line text field with an inline error message.
A multi-line text field. Same styling language as Input, with an inline error message that also switches the border to the error style. Every native <textarea> attribute spreads through.
Import
import { Textarea } from "@yuhuanowo/yunui";
Basic
Basic
Error state
With an error message
Please write at least 20 characters.
Disabled
Disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| error | string | — | Error message shown below the field; also switches the border to a red error style. |