Design System

In Development

Paragraph

Figma LibraryLocal HTMLGlobal HTMLReact
considering
stable
alpha
alpha

When to use this component

Use the Paragraph component when you need to display text content with consistent styling across your web application. It is designed to handle various text elements, such as paragraphs (<p>) or inline text (<span>), with responsive typography that adjusts based on the screen size (xs, md, xl). This component is ideal for creating readable, well-spaced text blocks that adhere to your design system guidelines, ensuring a cohesive look and feel. Additionally, it allows for quick customisation of text size through the size property (lg, md, sm), making it versatile for different use cases, such as headings, subheadings, or standard text content.

When not to use this component

Avoid using the Paragraph component when you need highly customised text styles or content structures that go beyond the component's capabilities. This component is not suitable for scenarios where advanced typography or layout features are required, such as complex text formatting, animations, or interactions. Additionally, if you need to apply specific styles not covered by the predefined class options or need more flexibility in structuring the text, consider using custom HTML and CSS instead. This component is also not intended for use in non-responsive or print-oriented designs where the predefined responsive classes may not apply effectively.