Skeleton
A placeholder shimmer for loading content.
Preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
width | string | '100%' | Width |
height | string | '20px' | Height |
className | string | — | Additional classes |
Usage
const { Skeleton } = window.ColorSnap;
ReactDOM.createRoot(document.getElementById('root')).render(
React.createElement(Skeleton, { width: '200px', height: '20px' })
);