Skip to main content

Skeleton

Storybook

Go to Story

Skeleton()

function Skeleton(__namedParameters): Element;

Defined in: src/components/Skeleton/Skeleton.tsx:30

Skeleton to indicate the content loading state. Useful if you load data partially and want to preserve layout size.

Parameters

ParameterType
__namedParametersSkeletonProps

Returns

Element

Example

// Basic usage, width and height classes are necessary
<Skeleton className="w-12 h-4">