Skip to main content

Skeleton

Skeleton

Import

import Skeleton from '@/components/ui/Skeleton';

Props

PropTypeDefaultDescription
widthstring'100%'Width of the skeleton container.
heightnumber15Height of the skeleton block.
borderRadiusnumber4Border radius for the skeleton shape.
animationDurationnumber800 (fixed)Duration of the shimmer animation (currently fixed internally).
direction'leftToRight' | 'rightToLeft''leftToRight'Direction of shimmer animation.
containerStyleobject-Additional style to apply to the outer container.

Basic Usage

<Skeleton height={20} width="80%" borderRadius={8} direction="rightToLeft"/>

NOTE: All example can be founded in skeleton.tsx