Textarea

Multi-line counterpart to Input. Same border / focus / error behavior, vertical resize.

Brief must be at least 80 characters

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/andromeda-textarea

Props

Every prop this component accepts. Any other prop is forwarded to the underlying element.

PropTypeDefaultDescription
labelstring-Uppercase mono label rendered above the field.
errorstring-When set, switches the field into the error state.
rowsnumber4Number of visible text lines; sets the field's initial and minimum height.
classNamestring-Forwarded to the <textarea>.
wrapperClassNamestring-Forwarded to the outer wrapper.

More Andromeda components