Skeleton

A placeholder shimmer for loading content.

Preview

Props

PropTypeDefaultDescription
widthstring'100%'Width
heightstring'20px'Height
classNamestringAdditional classes

Usage

const { Skeleton } = window.ColorSnap;
ReactDOM.createRoot(document.getElementById('root')).render(
  React.createElement(Skeleton, { width: '200px', height: '20px' })
);