Paragraph
A Paragraph
is a block of text without special formatting.
Import
import { Paragraph } from '@dynatrace/strato-components-preview/typography';
Use cases
Combine with other typography components
All sorts of different typography components like Strong
, Strikethrough
or
Text
can be used within a Paragraph
.
Limit the number of lines
Setting the optional maxLines
property to a value greater or equal to 1,
limits the text in the Paragraph
to the given number of lines and adds an
ellipsis at the end if the text would need more lines.
Props
ParagraphProps
extends
, , , ,
TextTruncationProps
Name | Type | Default | Description |
---|---|---|---|
maxLines? | - | Limits the text to the given number of lines and adds ellipsis if the text would need more lines. |
Still have questions?
Find answers in the Dynatrace Community