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

SkeletonText

Github
Storybook

A placeholder component that mimics the shape of text content while data is loading.

Importing

The component can be imported via:

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

Single-Line Skeleton

By default, the SkeletonText component renders a single-line placeholder.

Loading editor

Multi-Line Skeleton

To display multiple lines, use the lines prop.

Loading editor

Styling

The text prop determines the size and width of the skeleton based on the text sizes within Pluma.

Disabling animation

To disable the animation, set the shouldAnimate prop to false.

Loading editor

Accessibility

Ensure the SkeletonText is hidden from assistive technologies and provide alternative descriptions where needed.

API

Number of lines to display

Whether the skeleton shape should animate