Skip to content
RefineUI

Skeleton

Placeholder animation during data fetching.

Overview

Machine-readable contract from Component Spec.

component: skeletonexport: Skeletonversion: 1attributes: data-refineui=skeleton

Anatomy

Partdata-refineui
rootskeleton

Accessibility

SlotElement
skeletondiv

Layout

PropertyValue
directionlogical
rtltrue
npm install @refineui/react @refineui/tokens
import { Skeleton } from "@refineui/react";
<Skeleton width={200} height={20} />
<Skeleton width="100%" height={100} shape="circle" />
PropDefaultTypeDescription
widthnumber | stringSkeleton width in pixels or CSS value.
heightnumber | stringSkeleton height in pixels or CSS value.
shape"rectangle""rectangle" | "circle"Shape of the skeleton.