Skeleton

Loading placeholders in text, rect and circle shapes, with shimmer and pulse animations that adapt to light and dark themes.

Props

PropTypeDefaultDescription
shape'text' | 'rect' | 'circle''text'Shape: text / rect / circle
widthnumber | string—Width; numbers are treated as px
heightnumber | string—Height; numbers are treated as px
linesnumber1Number of text lines, text shape only
animation'shimmer' | 'pulse' | 'none''shimmer'Animation: shimmer / pulse / none
loadingbooleantrueRender children directly when false
childrenReactNode—Loaded content; sizes the skeleton while loading
...restHTMLAttributes—Remaining props are forwarded to the native div; the skeleton is aria-hidden, so set aria-busy on its container