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

SkeletonShape

Github
Storybook

A placeholder component that mimics the shape of various UI elements while data is loading.

Importing

The component can be imported via:

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

Preset Skeletons

The SkeletonShape component can be used to mimic the shapes of common UI elements like buttons, text fields, icons, and more.

Button Skeleton

Loading editor

Text Field Skeleton

Loading editor

Icon Skeleton

Loading editor

Custom Skeleton

For custom shapes, use the style prop to define dimensions and other CSS properties.

Loading editor

Disabling animation

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

Loading editor

Accessibility

Ensure SkeletonShape is hidden from assistive technologies using appropriate ARIA attributes or by marking it as purely decorative in the DOM.

API

Whether the skeleton shape should animate