Skip to content

Textarea

<bh-textarea> | BharatTextarea

The Textarea component provides a customizable multi-line input element. It supports dynamic sizing, variants, and style overrides.

Basic Usage

Custom Styling

Properties

PropertyTypeDescription
rowsnumberSpecifies the visible number of lines in the textarea.
colsnumberSpecifies the visible width of the textarea (in character columns).
resizestringControls the resize behavior. Options: "both", "horizontal", "vertical", "none".
placeholderstring"Enter text here..."
valuestringThe current value of the textarea.
disabledbooleanDisables the textarea when true.
requiredbooleanMarks the field as required for form submission.
readonlybooleanMakes the textarea read-only (user cannot edit the value).
maxlengthnumberMaximum number of characters allowed.
minlengthnumberMinimum number of characters required.
widthstringCSS width value. Overrides default.
heightstringCSS height value. Overrides default.
borderRadiusstringBorder radius styling.
borderstringCustom border style (e.g. "1px solid red").
backgroundstringBackground color.
colorstringText color.
fontSizestringFont size of the textarea content.