A typography component for rendering styled p elements. The Paragraph component builds on top of Text and supports all Text props.

Importing

The component can be imported via:

import { Paragraph } from '@customerio/pluma-components/react';

Usage

The design system includes a range of paragraph styles. To use a specific style, the component accepts a sizeVariant and variant prop.

product-p style

<Paragraph>
	product-p style
</Paragraph>

product-p-active style

<Paragraph 
	variant="active"
>
	product-p-active style
</Paragraph>

product-p-secondary style

<Paragraph 
	variant="secondary"
>
	product-p-secondary style
</Paragraph>

product-pxs style

<Paragraph 
	sizeVariant="xs"
>
	product-pxs style
</Paragraph>

product-pxs-active style

<Paragraph
	sizeVariant="xs" 
	variant="active"
>
	product-pxs-active style
</Paragraph>

product-pxs-secondary style

<Paragraph 
	sizeVariant="xs" 
	variant="secondary"
>
	product-pxs-secondary style
</Paragraph>

On this page