Text
Text
is a component to display multiple paragraphs.
Headers
By default, numbered headers are added to the paragraphs.
By setting the display-headers
prop to false
, paragraph headers are not displayed.
The style of all paragraph header element types can be set by using the header-component-type
prop.
Paragraph style
By setting the paragraph-style
prop, the style of line display can be defined for all paragraphs (default: new-line
).
Paragraph specific overwrites
The header-component-style
, header
, number
, paragraph-style
props of individual paragraphs can be used to overwrite the settings defined on the text level.
Reference
Properties
Property | Type | Default | Description |
---|---|---|---|
display-headers | boolean | true | display headers (by default automatically generated sequential numbers) |
header-component-type | "h2" | "h3" | "h4" | "h5" | "h6" | "h3" | HTML element used to display the headers |
paragraph-style | "in-line" | "new-line" | "new-line" | How to display the lines of text: one after another (in-line ) or each line on a new line (new-line ) |
paragraphs | ParagraphProps[] | / (required) | An array of paragraph properties. |