feedback

Skeleton

Loading placeholder with pulse animation. Supports text (single or multi-line), circular, and rectangular shapes.

Import

import { Skeleton } from '@stella-ds/react'

Props

PropTypeDefaultDescription
variant'text' | 'circular' | 'rectangular''text'Shape of placeholder
widthstring | numberundefinedCSS width
heightstring | numberundefinedCSS height
linesnumber1Number of text lines (text variant only)
animatebooleantruePulse animation

Preview

Examples

Multi-line text

<Skeleton variant="text" lines={3} />
<Skeleton variant="circular" width={40} height={40} />
<Skeleton variant="rectangular" width="100%" height={120} />
Separator
All Components
Stack