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:
Skeletonin its shape. - Short waits after a click:
loadingon the Button, no skeleton.
Props
| Prop | Type | Default | Meaning |
|---|---|---|---|
className | string | – | |
height | Height<string | number> | – | |
shape | "circle" | "text" | "block" | text | text – a line of text; block – a card; circle – an avatar or ring. |
width | Width<string | number> | – |
Accessibility
PageSkeletonsays "Wird geladen" (loading;role="status",aria-busy); single skeletons are hidden.- With reduced motion nothing pulses.