pantoken / renderers/web-components/src / truncate
Variable: truncate
consttruncate:ElementDefinition
Alpha
<instui-truncate> — clamps slotted text to a fixed number of lines with an ellipsis. lines (a positive integer) sets the --lines custom property; omit it for single-line truncation.
Example
html
<instui-truncate lines="2">A long description that will be clamped to two lines…</instui-truncate>