Textarea
Displays a form textarea or a component that looks like a textarea.
Component Features
- 📏 Multiple Sizes: Supports
xs,sm,md,lg,xl,2xl,defaultsize specs. - 📐 Auto Height: Supports
autoSizeprop to automatically adjust height based on content. - ❌ Clearable: Supports displaying a clear button.
- ⚠️ Error State: Supports
errorprop to display error state. - 📝 Character Count: Supports
showCountandmaxlengthprops for character counting. - 🔄 Resize Control: Supports
resizeprop controlling resize behavior (none/vertical/horizontal/both). - 📝 Readonly & Disabled: Supports
readonlyanddisabledprops. - 🎨 Theme Customization: Based on
BrConfigProviderfor global theming and TailwindCSS local overrides.
Basic
Auto Height
Automatically adjusts its height based on the content.
Disabled
With Label
With Character Count
With Clear Button
Error State
Sizes
Resize Behavior
You can control the resize behavior using the resize prop.
Theming
You can customize the appearance of the textarea using Tailwind CSS classes or by overriding the CSS variables in your global CSS.
Global Theme Configuration
The BrTextarea component respects the global theme configuration provided by BrConfigProvider.
Tailwind Customization
You can also use class prop to add custom styles: