Show a placeholder outline while content loads, previewing structure and keeping layout stable.

How to use

Use Skeleton as a loading placeholder. When an existing component supports loading or skeleton, set that state so it can provide the correct shape rather than redrawing its skeleton in the page.

  • loading=false renders real children. During loading, variant, width, height, or renderHints controls the placeholder.

  • Prefer a component’s own loading shape. For a standalone Skeleton, use design-system Tokens for dimensions and corner radius.

Import

import { Skeleton } from '@snowui-design-system/components';

Usage

Variants

Loading state

API Reference

Property Type Default Example Description
variant SkeletonVariant — variant={value} Explicit skeleton shape. Aliases normalize to line, circle, or rect.
width string | number — width="Example" Explicit width. Numeric values are converted to rem automatically.
height string | number — height="Example" Explicit height. Numeric values are converted to rem automatically.
componentClass string — componentClass="Example" Compatibility entry for older callers. Matches historic default layouts only when renderHints is absent. New components must not register through it.
renderHints FrameRenderHints — renderHints={value} Component registration protocol supporting variant, width, height, radius, and rows.
loading boolean true loading Whether to show the skeleton. false reveals children; group mode preserves their mounted state.
group boolean false group Keep children mounted and represent the entire region with one loading surface.
responsive ResponsiveConfig — responsive={value} Responsive width and height overrides.
class string "" class="my-component" External class name. Applied to the layout container for multiple skeleton items or the block itself for a single item.
style string "" style="width: 100%;" Inline style. Applied to the layout container for multiple skeleton items or the block itself for a single item.
children Snippet — <Skeleton>Content</Skeleton> Real child content without parameters. Mounted only when ready by default, or continuously in group mode.
No data