Skip to main content

ISkeleton

View source on GitHub

A component that is used to hide components during uploading.

skeletonskeleton

Examples

Circular avatar placeholder for loading states

const avatarSkeleton: ISkeleton = {
width: "40px",
height: "40px",
borderRadius: "50%"
}

Responsive content card loading placeholder

const cardSkeleton: ISkeleton = {
width: "100%",
height: "120px",
borderRadius: "8px"
}

Text line loading animation

const textSkeleton: ISkeleton = {
width: "80%",
height: "16px",
borderRadius: "4px"
}

Properties

PropertyTypeDescription
widthstringDefines the skeleton width
heightstringDefines the skeleton height
borderRadius?stringDefines the skeleton border radius
className?stringDefines the CSS class for styling the component. Can be used to override or extend the default component styles.