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
The maxCharQuantity
prop can be used to limit the number of allowed 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
Use the autoScroll
prop to automatically scroll to bottom. Auto-scroll stops once the user scrolls up, and resumes once the user scrolls back to the bottom.