Skip to content

Textarea

The Textarea component is a form control used to receive multi-line text input from the user. It’s suitable for comments, messages, descriptions, and other longer text entries.

Add the Textarea component to your project using the OrbitUI CLI:

Terminal window
npx orbitkit add textarea

Import the Textarea component and use it in your forms. You’ll typically use standard HTML textarea attributes like id, name, rows, cols, and placeholder. It’s also highly recommended to pair a textarea with a <label> element for accessibility.

The Textarea component accepts all standard HTML attributes for a <textarea> element, plus the following props based on inputVariants:

PropTypeDefault
variantdefaultdefault
disabledbooleanfalse