sonnat-ui icon indicating copy to clipboard operation
sonnat-ui copied to clipboard

[Text] Add `multilineTruncate` property

Open mimshins opened this issue 3 years ago • 0 comments

Add the multilineTruncate prop to the <Text> component in order to make the paragraphs and multi-line texts truncate.

type MultilineTruncate = "ellipsis" | "clip" | undefined

Example:

<Text variant="body" multilineTruncate="ellipsis" as="p">
  A Paragraph of Text
</Text>

mimshins avatar Feb 21 '22 07:02 mimshins