Skeleton
Skeleton renders a decorative loading placeholder. It intentionally does not prescribe shape: set size, layout, and border radius with class or inline styles.
Anatomy
| Element | Part | Selector |
|---|---|---|
<component> | root | [data-scope="skeleton"][data-part="root"]LMBCopy |
Props
| Name | Description | Default | Control |
|---|---|---|---|
asOptional | Element tag used for the skeleton root. string | undefined | "div" | |
animationOptional | Loading placeholder animation. nonepulsewave | "pulse" |
Events0
No events documented.
Slots0
No slots documented.
Styling3
| Token | Description |
|---|---|
--md-skeleton-animation-durationMotionFallback 1.4s | Controls animation duration. |
--md-skeleton-container-colorColorFallback var(--md-color-container,--translucent(var(--md-sys-color-on-surface),0.12)) | Controls placeholder container color. |
--md-skeleton-highlight-colorColorFallback --translucent(var(--md-sys-color-on-surface),0.08) | Controls wave highlight color. |
Examples
Default
Shapes
Animations
Pulse
Wave
None