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
- OverflowText Props
Live Component Playground
Common Examples
Overflow text
To handle the overflow of text content, you can use theOverflow.Text component. By default, it will limit the text to a single line:Adjusting rows of overflow text
You can increase the number of visible rows by setting therows prop:Truncating overflow text
To display a “Show more…” button on overflow text, you can use theexpandable prop. For more custom use cases, you can also use the expandText/collapseText and onExpand/onCollapse props to customize the displayed text and event handlers:React Accessibility
- The component automatically disables keyboard-focusable elements when they are not visible in the truncated view
- The expand/collapse button is keyboard accessible
- Content is properly structured for screen readers