Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
Display

Skeleton <pm-skeleton>

Loading placeholder.

Full screen

Props

<script type="module"> import '@prismora/css'; import '@prismora/elements/skeleton'; </script> <div class="pm-card pm-stack" role="status" aria-busy="true" aria-label="Loading post" style="inline-size: min(100%, 24rem); padding: var(--pm-space-4)"> <div class="pm-cluster" style="flex-wrap: nowrap"> <pm-skeleton shape="circle" width="2.75rem"></pm-skeleton> <pm-skeleton shape="text" lines="2"></pm-skeleton> </div> <pm-skeleton height="9rem"></pm-skeleton> <pm-skeleton shape="text" lines="3"></pm-skeleton> </div>

Attributes

AttributeTypeDefaultDescription
shape'rect' | 'text' | 'circle'—Outline shape.
linesnumber1Number of text lines to imitate.
widthstring—Width as a CSS length, e.g. "12rem" or "60%".
heightstring—Height as a CSS length.

Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.

Used in templates

Overview dashboardTraffic analyticsOrdersNotificationsProject board