Feedback

Skeleton

Placeholder shapes that hold the place of content while it loads.

Class nameTypeDescription
skeletonplf:skeletonComponentA placeholder shape
skeleton-circleplf:skeleton-circleModifierA circle, such as for an avatar

Loading state

Put the role="status" text outside the aria-busy container, and remove aria-busy once the content replaces the placeholders.

Loading profile…

Inside a table

Keep the real column headers and hide only the placeholder <tbody>.

Name Role

React

Skeleton from @pelatform/react renders this markup from its props.

Prop Values Default
circle true for a circle, such as for an avatar false

The other props are a native div’s, className and ref included.

CSS variables

Override on a root or on a single placeholder.

Variable Default
--plf-skeleton-bg --plf-color-surface-muted
--plf-skeleton-width 100%; 3rem (48px) for a circle
--plf-skeleton-height Space 4 (16px); 3rem (48px) for a circle
--plf-skeleton-radius Large radius (8px); a circle stays round
--plf-skeleton-duration 2s for one pulse

Built with Pelatform UIv0.1.0

Components

Getting started

Foundations

Components

Actions

Data display

Navigation

Feedback

Data input

Layout

Advanced

Integrations

Blocks

Application

Authentication

Icons