TextArea
A text area is a multiline text input box, with an optional character counter when there is a length limit.
The HvTextArea
component is built on top of the Input
component, therefore many properties are shared between the components. Please
refer to the Input documentation for usage, like
validation or controlled
state management.
Maximum length
Use the maxCharQuantity
prop to limit the number of characters.
- By default, the limited can be exceeded, but you can set the
blockMax
prop to prevent this. - The
middleCountLabel
allows customizing the count separator (/
).
Auto scroll
Enable automatic scrolling to the bottom using the autoScroll
prop.
Scrolling stops when the user scrolls up and resumes when they return to the bottom.