Textarea
A multiline text control that grows with its content between a minimum and maximum number of lines.
Paste this into your agent.
Textarea takes descriptions, comments, bios and messages that may wrap or run to paragraphs. It sizes itself to the text, so you set limits in lines instead of a fixed height.
Install
bashnpx shadcn@4.18.0 add @siteplane/textarea
Import it from @/siteplane/components/textarea. The project needs Siteplane UI's one-time setup first: .
When to pick it
- vs : Pick Input when the answer fits on one line.
- vs : Pick Input Group with InputGroupTextarea when the box needs a header, footer or corner action like a send button.
- vs : Pick Prompt Input for a chat or AI composer with attachments and submit behavior built in.
Rules
- Set height with
minLinesandmaxLines; nativerowsdoes not control it. - Listen with native
onChange; Textarea has noonValueChange. - Enforce limits with
maxLengthand show the remaining count from a controlledvalue. - Label it through Field and FieldLabel, and put errors on the Field with FieldError.
- Use
readOnlyfor submitted but locked text anddisabledonly when it should not submit.
Reference
Add to your agent
Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides
CLI
MCP server
Questions
Related skills
Form Field Validation Timingby UI Skillbook
Validate at the right moment — not on every keystroke, not only on submit.
Forms
Siteplane Attachmentby UI Skillbook
A card for a file or image attached to a message or draft, with upload states and actions.
Siteplane UI
Siteplane Autocompleteby UI Skillbook
A text input that suggests completions while still accepting whatever the person types.
Siteplane UI
Siteplane Calendarby UI Skillbook
An inline month grid for picking a single date, several dates or a range, with unavailable-day rules.
Siteplane UI