Primitives

Skeleton

Placeholder loading state that mirrors the geometry of the content it replaces

Markdown version for agents

Import
import { Skeleton } from '@amezquita/design-system/components/primitives/Skeleton'

Live render

Loading profile

    Props

    PropTypeDescription
    variant?'text' | 'circle' | 'rect'
    width?string | number
    height?string | number
    lines?number
    label?stringPass a label (e.g. "Loading…") on ONE skeleton per loading context to announce the loading state to screen readers. Omit on additional skeletons in the same region to avoid multiple identical announcements.

    Tokens

    TokenTypeValue
    --skeleton-border-radiusdimension4px
    --skeleton-height-rectdimension48px
    --skeleton-height-textdimension1em