Skip to content

Skeleton

Terminal window
npx skeci-ui add skeleton
import { Skeleton } from '@/components/ui/skeleton';
<div className="flex items-center space-x-4">
<Skeleton shape="circle" width={40} height={40} />
<div className="space-y-2">
<Skeleton width={250} height={16} />
<Skeleton width={200} height={16} />
</div>
</div>

Card Placeholder

PropTypeDefaultDescription
widthnumber | string'100%'The width of the skeleton.
heightnumber | string20The height of the skeleton.
shape'rectangle' | 'circle''rectangle'The shape of the skeleton.