docs/components/textarea
Sections
Components
Utilities
Forms
Hooks
Copy Markdown
Form textarea or textarea-styled component.
PreviewCode
CLIManual
pnpmbunnpmyarn
pnpm dlx shadcn@latest add @shark/textarea
import { Textarea } from "@/components/ui/textarea";
<Textarea />
Control the value with value and onChange.
PreviewCode
Character count: 0
Disable the textarea with the disabled prop. Use Field with disabled to disable the whole field (label + textarea).
PreviewCode
Feedback
Use the invalid prop on Field or Textarea to show invalid state.
PreviewCode
Feedback
Please provide at least 20 characters.
Use autoresize to make the textarea grow with content.
PreviewCode
Wrap the textarea in a Field and add FieldLabel and FieldDescription.
PreviewCode
Message
Add a short message to include with your submission.
Use FieldGroup to group multiple Field blocks. Combine textarea with other inputs and action buttons.
PreviewCode
script.js
PreviewCode
Message
SubmitClear
Multi-line text input. Accepts all native textarea attributes.
| Prop | Type | Default |
|---|---|---|
autoresize | boolean | true |
className | string | - |
For a complete list of props, see the Ark UI documentation.
[
Previous page
Tags Input ](/docs/components/tags-input)[
Next page
Timer ](/docs/components/timer)
On This Page
InstallationUsageControlledStatesDisabledInvalidExamplesAutoresizeWith FieldWith Input GroupForm IntegrationAPI ReferenceTextarea