skeleton

The Skeleton component displays a placeholder while content is loading, supporting customizable width, height styles.

Usage

Default

Loading content...

<Skeleton width="100%" height="20px" />

Props

Data table
TypeDescription
aria-busybooleanOverrides the default busy state.
aria-describedbystringOptional ID reference to additional descriptive content.
aria-hiddenbooleanAllows explicit control over whether the skeleton should be exposed to assistive technology.
aria-labelstringOptional ARIA label for the skeleton. Preferred when you want to directly label the status region.
aria-labelledbystringOptional ID reference to an external label element.
aria-live"off" | "polite" | "assertive"Overrides the default ARIA live politeness when announce is enabled.
classNamestringAdditional class name(s) for custom styling.
data-testidstringOptional test ID for testing frameworks.
heightstring | numberHeight of the skeleton loader (e.g., "100%", "50px", or a number representing pixels).
labelstringAccessibility label for screen readers. Used as fallback hidden descriptive text when announce is enabled.
roleReact.AriaRoleOptional semantic role override. Defaults to "status" when announce is enabled.
roundingRoundingTypeRounding of the skeleton. "none" | "small" | "medium" | "large" | "full"
shadowShadowTypeShadow style for the skeleton loader. "none" | "light" | "medium" | "strong" | "intense"
widthstring | numberWidth of the skeleton loader (e.g., "100%", "200px", or a number representing pixels).