Skip to main content

Paragraph

A Paragraph is a block of text without special formatting.

Import

import { Paragraph } from '@dynatrace/strato-components-preview/typography';

Use cases

CodeSandbox

Combine with other typography components

All sorts of different typography components like Strong, Strikethrough or Text can be used within a Paragraph.

CodeSandbox

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.

CodeSandbox

Props

ParagraphProps

extends, , , ,

TextTruncationProps

NameTypeDefaultDescription
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