Components

Integrations

Truncate

Truncate kürzt zu lange Texte automatisch mit "…" ab.GitHubMarkdown

Properties

PropertyTypeDefaultDescription
titlestring-The `title` attribute of the elements root, which browsers show as a native tooltip on hover. It is not derived from the children — pass the full text to make it readable while truncated.
childrenReactNode-
classNamestring-The elements class name.
offsetnumber8the position(from the end) of the ellipsis that shows in text
ellipsisstring...Ellipsis that is added into the text in case it is truncated

Auf dieser Seite