Forms

Tailwind CSS Textarea

The Tailwind CSS Textarea is a custom component designed to enable styled textarea control.

Default Textarea

A basic example of Tailwind CSS Textarea with a placeholder label.

Label

Display a Tailwind CSS Textarea with an associated form textarea label element for better accessibility and user experience.

Hint

Include hint text below a Tailwind CSS Textarea for an additional guidance or context for the textarea field.
Hint text goes here

Validation

Utilize Tailwind CSS Textarea validation states based on the form validation status to enhance user feedback and overall form usability.

Disabled

Use the disabled attribute of the Tailwind CSS Textarea to indicate non-interactivity.

Sizes - Default

Use the .textarea-sm and .textarea-lg custom classes to adjust the size of Tailwind CSS Textarea fields, providing flexibility for different design requirements.

Source Code

The following source file manages the CSS styles of the Tailwind CSS Textarea component. Upon building the assets using Webpack Build Tools , the below file is compiled and added into the dist/assets/css/styles.css bundle, making it available globally across all pages.
File Description
src/core/plugins/components/textarea.js The Tailwind CSS compatible plugin written in PostCSS for applying CSS styles to the Tailwind CSS Textarea component.