Skip to main content

Skeleton and PageSkeleton

import { Skeleton, PageSkeleton } from "@study/ui"

Result
Loading...
Live Editor
<div className="ui-stack">
  <div style={{ display: "flex", gap: 12, alignItems: "center" }}>
    <Skeleton shape="circle" width={40} />
    <div style={{ flex: 1 }}><Skeleton width="60%" /><Skeleton width="35%" height={12} /></div>
  </div>
  <PageSkeleton />
</div>

When to use​

  • A page loads for the first time: PageSkeleton.
  • A part loads later: Skeleton in its shape.
  • Short waits after a click: loading on the Button, no skeleton.

Props​

PropTypeDefaultMeaning
classNamestring–
heightHeight<string | number>–
shape"circle" | "text" | "block"texttext – a line of text; block – a card; circle – an avatar or ring.
widthWidth<string | number>–

Accessibility​

  • PageSkeleton says "Wird geladen" (loading; role="status", aria-busy); single skeletons are hidden.
  • With reduced motion nothing pulses.