Textarea

Usage

Include CSS

Import Tailwind and one full Basecoat style bundle.

@import "tailwindcss";
@import "basecoat-css/vega.css";

Or import only the base CSS, Textarea component CSS, and one style pack.

@import "tailwindcss";
@import "basecoat-css/base.css";
@import "basecoat-css/components/textarea.css";
@import "basecoat-css/styles/vega.css";

Using CDN or bundler imports? See the Installation page.

Add your textarea HTML

Add class="textarea" to a <textarea> element. Textareas inside a class="field" container also receive the same styling automatically.

Use native HTML attributes for behavior: disabled for disabled textareas and aria-invalid="true" for invalid state styling.

<textarea class="textarea" placeholder="Type your message here"></textarea>

Textareas support right-to-left layouts through native browser direction handling.

Examples

Field

Use field with a label and description to create an accessible textarea.

Write a short message.

Disabled

Invalid

Message is required.

Button

Form

You can @mention other users and organizations.

RTL

Add dir="rtl" to the textarea, field, or an ancestor.

شاركنا أفكارك حول الخدمة.