Skeleton

Displays an animated placeholder in place of contents.

PropTypeDefault
loadingbooleantrue
widthResponsive<string>
minWidthResponsive<string>
maxWidthResponsive<string>
heightResponsive<string>
minHeightResponsive<string>
maxHeightResponsive<string>

This component is based on the Radix Slot primitive and also supports common margin props m, mx, my, ml, mr, mt, mb. View source

Use the loading prop to control when the Skeleton is rendered.

An empty Skeleton displays a placeholder that represents a line of text.

You can nest interactive elements like inputs and buttons inside Skeleton. The component automatically makes sure that they can’t be hovered, clicked, or focused.