Skip to content

Skeleton Components

Animated loading placeholders.


Skeleton

Base skeleton element.

Props

PropTypeDescription
classNamestringShape and size classes
styleCSSPropertiesInline styles

Example

tsx
<Skeleton className="h-12 w-12 rounded-full" />
<Skeleton className="h-4 w-[200px]" />

SkeletonText

Multiple lines of text placeholder.

Props

PropTypeDefaultDescription
linesnumber3Number of lines
classNamestring-Container class

SkeletonCard

Card-shaped skeleton.

Props

PropTypeDefaultDescription
showHeaderbooleantrueShow header skeleton
showFooterbooleanfalseShow footer skeleton
classNamestring-Container class

SkeletonTable

Table skeleton.

Props

PropTypeDefaultDescription
rowsnumber5Number of rows
columnsnumber4Number of columns
showHeaderbooleantrueShow header row
classNamestring-Container class

SkeletonList

List of skeleton items.

Props

PropTypeDefaultDescription
countnumber3Number of items
showAvatarbooleanfalseShow avatar placeholder
classNamestring-Container class

See also