TruncateText
One line cut to a number of characters, with the full text in a tooltip — for long links, ids and names where space is short.
Basic
Text longer than limit is cut and gets ...; the full text shows in a tooltip on hover or focus and stays open while you hover it. Shorter text stays as it is. ellipsis changes the mark.
Table
In a table cell it keeps long values on one line, so rows stay the same height.
Link
href makes the text a link; openLink links a URL to itself. Links open in a new tab unless target says otherwise.
Copy
copyable puts a copy button before the text; it copies the full text, not the cut one, and copied reports it.
Nothing copied yet
Highlight
highlight marks search matches in the shown part of the text.
Design tokens
dt changes the tokens of one instance — here a wider gap and other link colours.
Pass through
pt adds classes and styles to the parts: root, text, link, copy.