Components/Skeleton

Skeleton

display

Shimmer animation placeholder for loading states. Composable with text, circle, and rectangle variants.

import { Skeleton } from '@/components/forge'

Preview

Skeleton

Code Example

Props

PropTypeDefaultRequiredDescription
variant'text' | 'circle' | 'rectangle''rectangle'NoShape of the skeleton
widthstring | number-NoWidth (string like "75%" or number in px)
heightnumber-NoHeight in px
sizenumber-NoBoth width and height for circle variant

Variants

textcirclerectangle

Accessibility

  • Skeleton container has aria-busy="true" and aria-label="Loading"
  • Shimmer animation pauses if prefers-reduced-motion is set

Related Components