Skip to content

Skeleton

Data Display

Loading placeholder with pulse animation for content that is still loading.

Avatar placeholderText linesContent panel
Open preview

Responsive viewport — resize the window to explore. Direction and density apply only to this preview. Theme applies to the docs too.

Usage

Match the approximate size and shape of content being loaded. Replace skeletons when data arrives and provide an error state when loading fails.

Import
import { Skeleton } from "@dashboardpack/core/components/ui/skeleton";

Available in the included @dashboardpack/core package. Copy the complete example from Source code for all imports and state. Add "use client" when using hooks or event handlers. See installation and theming for project setup.

API reference

Common props and defaults. Slot-specific props are named below; native elements also accept their standard HTML attributes. The component TypeScript definitions are the complete type reference.

Skeleton props
PropType / DefaultDescription
classNamestring

Default: —

Set the placeholder dimensions and shape.
styleCSSProperties

Default: —

Use for dynamic measured dimensions.
aria-hiddenboolean

Default: —

Hide purely decorative placeholder shapes.

Build with these too