sigilUI

Skeleton

Reserve a content shape while data is loading.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { Skeleton } from "@sigil-ui/components";

Usage

<div className="flex flex-col gap-3 w-full max-w-sm">
    <Skeleton className="h-6 w-3/4" />
    <Skeleton className="h-4 w-full" />
    <Skeleton className="h-4 w-5/6" />
  </div>

Props

PropTypeDefaultDescription
variantSkeletonVariantdefaultShape / size preset.

Token integration

CSS VariablePurpose
--s-radius-smRadius sm
--s-radius-mdRadius md
--s-radius-fullRadius full
--s-radius-lgRadius lg
--s-textText
--s-surfaceSurface
--s-duration-slowDuration slow