Componentsv2.189.1
Iconsv1.19.0
MCPv0.8.62
Tokensv0.34.3

Base text component for applying typographic styles.

Importing

The component can be imported via:

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

Usage

Use the Text component when showing any sort of styled text in the application, when other typography components aren't suitable.

Loading editor

Size

The size prop allows changing the font size:

Loading editor

Weight

The weight prop allows changing the font weight:

Loading editor

Color

The color prop allows changing the text color:

Loading editor

Family

The family prop allows changing the font family:

Loading editor

Text style

The component supports a text prop, which applies one of the predefined typographic styles:

  • product-code
  • product-h1
  • product-h2
  • product-h3
  • product-h4
  • product-label
  • product-label-secondary
  • product-link
  • product-link-secondary
  • product-p
  • product-p-active
  • product-p-secondary
  • product-ps
  • product-ps-active
  • product-pxs
  • product-pxs-active
  • product-pxs-secondary
Loading editor

Truncation

The truncate prop allows truncating the text with ellipsis:

Loading editor