Paragraph
The Paragraph component provides consistent styling for body text in paragraphs. Use Paragraph for blocks of text content.Installation
Usage
Props
Paragraph Props
| Prop | Type | Default | Description |
|---|---|---|---|
element | string | 'PARAGRAPH' | Overrides the default element name to apply unique styles with the Customization Provider. |
marginBottom | 'space0' | 'space70' | Overrides the default marginBottom of space70 to space0. |
id prop is not available on Paragraph.
Styling Details
The Paragraph component has the following default styles:as:'p'(always renders as a paragraph element)color:colorTextfontSize:fontSize30fontWeight:fontWeightNormallineHeight:lineHeight40marginBottom:space70(can be overridden tospace0)
Examples
Basic Paragraphs
Removing Bottom Margin
UsemarginBottom="space0" to remove the default bottom margin:
With Inline Formatting
Customization
The Paragraph component can be customized using the Customization Provider:Accessibility
- Paragraph automatically renders as a semantic
<p>element - Keep paragraph text concise and scannable
- Use appropriate line length for readability (generally 50-75 characters per line)