Skip to content

Skeleton

Skeletons provide loading placeholders with optional shimmer.

import { Skeleton, SkeletonText, SkeletonCard, SkeletonListItem } from "@truongdq01/ui";
<Skeleton width="100%" height={16} />
<SkeletonText lines={3} />
<SkeletonCard />
<SkeletonListItem />
PropTypeDefaultDescription
widthnumber | string"100%"Width of the skeleton block
heightnumber16Height of the skeleton block
borderRadiusnumber-Override corner radius
animatebooleantrueEnable shimmer animation
PropTypeDefaultDescription
linesnumber3Number of lines
lastLineWidthstring"60%"Width of the last line