Installation
Section titled “Installation”pnpm dlx shadcn@latest add pxl-ui/registry/textarea
Copy and paste the following code into your project.
Update the import paths to match your project setup.
import { Textarea } from "@/components/ui/textarea"<Textarea />Use Field, FieldLabel, and FieldDescription to create a textarea with a label and description.
Disabled
Section titled “Disabled”Use the disabled prop to disable the textarea. To style the disabled state, add the data-disabled attribute to the Field component.
Invalid
Section titled “Invalid”Use the aria-invalid prop to mark the textarea as invalid. To style the invalid state, add the data-invalid attribute to the Field component.
Button
Section titled “Button”Pair with Button to create a textarea with a submit button.