Textarea
A multiline field for notes, descriptions, and longer text.
npx shadcn@latest add @silicon-ui/textareaInstallation
With the shadcn CLI
npx shadcn@latest add @silicon-ui/textareaManually
Install the dependencies
npm install motionCopy these files into your project
- components/silicon-ui/textarea/textarea.tsx
- components/silicon-ui/textarea/textarea.module.css
Add the foundation, once per app, for the design and motion tokens
npx shadcn@latest add @silicon-ui/silicon-foundation
Usage
API reference
| Prop | Type | Default |
|---|---|---|
label* | string | — |
description | string | — |
error | string | — |
Also accepts the props of TextareaHTMLAttributes<HTMLTextAreaElement>.
Dependencies
- npm
- motion
- Registry
- silicon-motion-tokens