Documentation Index
Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
Use this file to discover all available pages before exploring further.
- Implementation
- Textarea Props
Common Examples
Getting the textarea value
In a form
TheTextarea component can be used in the same way that you would use an HTML textarea and label element.Using state
Use thevalue prop to control the value of a Textarea using a state management strategy.Using a ref
Use thevalue and ref props to control the value of a Textarea with a React ref and the ref.current.value.Dynamic height
Use theautoHeight prop of the Textarea component to enable the element to grow to fit the text. Optionally, add maxRows and/or minRows to set height boundaries.Show character counter
Use themaxLength and showCounter props to display a character counter below the textarea.Markdown in labels
Thelabel prop supports inline markdown: bold (**text**), italic (*text*), bold and italic (***text***), highlight (==text==), and code (`text`).Hide the label
UsehideLabel to visually hide the label. The label string is converted to an aria-label on the input so it remains accessible to screen readers — any inline markdown is stripped to plain text.