Componentsv2.189.0
Iconsv1.19.0
MCPv0.8.61
Tokensv0.34.3

Spinners are animated icons used to indicate a content area's loading state.

Importing

The component can be imported via:

import { Spinner } from '@customerio/pluma-components/react';
Loading editor

Icon only

By default, the spinner component renders an inline-block element, which contains the rotating icon.

Loading label

Setting the shouldShowLoadingText prop to true will display a "Loading…" text next to the spinner:

Loading editor

The text can be customized further with the label prop:

Loading editor

Color

The spinner's color can be customized with the color prop, which accepts a text color token name (similar to the Text component), for example:

Loading editor

The color can also be set to inherit, in which case the spinner will inherit the current text color. This is useful in situations where we want the spinner color to match the text, for example:

Loading editor

On this page