Skip to main content

Text

Text component facilitates use of Salt typography styles throughout a product or application, ensuring consistency and unified look and feel. It includes attributes such as font size, weight, letter spacing, line height and decoration.

Salt package@salt-ds/core

Read more on our typography foundation page.

To import Text and related components from the core Salt package, use:

import {
  Text,
  Display1,
  Display2,
  Display3,
  Display4,
  Display5,
  Display6,
  Display7,
  Display8,
  Editorial1,
  Editorial2,
  Editorial3,
  Editorial4,
  Editorial5,
  Editorial6,
  Eyebrow,
  H1,
  H2,
  H3,
  H4,
  Label,
  TextNotation,
  TextAction,
} from "@salt-ds/core";