Skip to content

Skeleton

The Skeleton component is used to display placeholder content while the real data is loading. This helps improve perceived performance and provides users with a visual cue of the content structure.

  • Loading states: Mimics the layout of actual content.
  • Variants: Supports pulse animation and other visual styles.
  • Customizable size and shape: Works with rectangles, circles, and custom dimensions.
  • Flexible usage: Can wrap actual content, which is revealed once isLoading is false.





PropTypeDefaultDescription
isLoadingbooleantrueWhether the skeleton is visible or the real content should be displayed.
variant"pulse" | "wave""wave"Visual style of the skeleton animation.
styleCSSPropertiesInline styles for width, height, border radius, etc.
classstringAdditional classes to customize styling.
  • Use Skeleton around components that load asynchronously.
  • For circular content, adjust border-radius to 50%.
  • Can be combined with multiple skeletons to mimic complex layouts.