ComponentsDisplay

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.

Features7APIThemingAccessibility

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.

Quarterly marketing report for the spring campaignShort title9f2c41d7-6b0e-4c55-9a43-0d2e7b8c1f60

Table

In a table cell it keeps long values on one line, so rows stay the same height.

Copy

copyable puts a copy button before the text; it copies the full text, not the cut one, and copied reports it.

sk_test_51Hc8f2LkA9xQm3Vt7Rz0pWnYbEuJd

Nothing copied yet

Highlight

highlight marks search matches in the shown part of the text.

shop.example.comsummer-collection.shop.example.orgblog.example.netmy-long-workshop-landing.example.com

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.

9f2c41d7-6b0e-4c55-9a43-0d2e7b8c1f60