Skip to content
THE COMPONENT LIBRARY
Skip to content

Component reference

Skeleton

An article placeholder while real content loads.

Preview

Live preview

Changes apply to this preview only.

Article

A card waiting for its content.

Profile

The skeletons stay hidden from assistive technology; one status announces the loading.

Loading profile…

List

Repeating rows while a collection loads.

Width adapts to the available space

More examples

Different configurations and compositions using the real Pimolu API. Each preview runs independently and follows the site appearance.

Shapes

text, rectangular, rounded and circular.

Open preview

Animations

pulse, wave and none. Both stop automatically under prefers-reduced-motion.

Open preview

Dimensions

A number means pixels; a string accepts any CSS unit.

Open preview

Usage

Match the approximate structure and reserve space to reduce layout shift.

API reference

Generated from the public TypeScript declarations. Native HTML attributes are inherited where the component extends them; this reference includes Pimolu props and selected common native attributes.

PimoluSkeletonProps

Type source
PimoluSkeletonProps public API
NameTypeDefaultDescription
shape"text" | "rounded" | "rectangular" | "circular" | undefined"text"Shape of the placeholder.
animation"none" | "pulse" | "wave" | undefined"pulse"Visual animation.
widthProperty.Width<string | number> | undefined—CSS width: number = pixels, or CSS unit string.
heightProperty.Height<string | number> | undefined—CSS height: number = pixels, or CSS unit string.
onChangeChangeEventHandler<HTMLSpanElement, Element> | undefined—Standard React/HTML attribute.
defaultValuestring | number | readonly string[] | undefined—Standard React/HTML attribute.
classNamestring | undefined—Standard React/HTML attribute.
styleCSSProperties | undefined—Standard React/HTML attribute.
onClickMouseEventHandler<HTMLSpanElement> | undefined—Standard React/HTML attribute.
shape

"text" | "rounded" | "rectangular" | "circular" | undefined

Default: "text"

Shape of the placeholder.

animation

"none" | "pulse" | "wave" | undefined

Default: "pulse"

Visual animation.

width

Property.Width<string | number> | undefined

No default extracted.

CSS width: number = pixels, or CSS unit string.

height

Property.Height<string | number> | undefined

No default extracted.

CSS height: number = pixels, or CSS unit string.

onChange

ChangeEventHandler<HTMLSpanElement, Element> | undefined

No default extracted.

Standard React/HTML attribute.

defaultValue

string | number | readonly string[] | undefined

No default extracted.

Standard React/HTML attribute.

className

string | undefined

No default extracted.

Standard React/HTML attribute.

style

CSSProperties | undefined

No default extracted.

Standard React/HTML attribute.

onClick

MouseEventHandler<HTMLSpanElement> | undefined

No default extracted.

Standard React/HTML attribute.

Accessibility

  • Keep placeholder shapes decorative and announce loading once on the containing region.
Read the accessibility guide →