ComponentsField
Field Textarea
A textarea field component for the Field component.
Basic Usage
The FieldTextarea component provides a textarea field component for the Field component.
We'll never share your email with anyone else.
import { Field, FieldLabel, FieldDescription, FieldTextarea } from "@epilot/volt-ui"
<FieldGroup>
<Field variant="highlight">
<FieldLabel>Message</FieldLabel>
<FieldTextarea placeholder="Hello, how are you?" rows={5} />
</Field>
<FieldDescription>We'll never share your email with anyone else.</FieldDescription>
</FieldGroup>API Reference
FieldTextarea
Textarea component that integrates with Field context. Accepts all standard textarea props.
| Prop | Type | Default | Description |
|---|---|---|---|
rows | number | 3 | Number of rows. |
cols | number | 3 | Number of columns. |
className | string | - | Additional CSS classes. |
readOnly | boolean | false | When set to true, the textarea is read-only. |
disabled | boolean | false | When set to true, the textarea is disabled. |
resize | "none" | "vertical" | "horizontal" |