A workshop for small pieces
Every widget here is self-contained — no runtime dependencies beyond React, styled with theme tokens you can rename. Tune it with the props panel, then copy the file straight into the project that needs it.
16 widgets · 5 categories · zero dependencies
Skeletons
Placeholders that hold the shape of content while it loads.
Skeleton
The base placeholder. One element, four animation styles, three shapes — everything else in this category composes it.
Text block
A paragraph placeholder. The short final line is what sells it as text; the per-line stagger stops the block from blinking as one slab.
Card
Media, headline, body and byline in the same proportions as the real card — so the swap costs zero layout shift.
List rows
Rows with pseudo-random line widths, because a column of identical bars reads as a barcode rather than as names.
Table
Cells delay by row + column, so the placeholder fills in on a diagonal instead of flashing the whole grid at once.
Swap & anti-flash
The part most skeletons get wrong. Set latency to 120ms with the guard on and no skeleton appears at all; turn the guard off and watch it flicker.
Buttons
Press, pending, resolved — the full lifecycle of an action.
Variants
Five weights, three sizes, one class map. Focus rings are keyboard-only and the press scale is small enough to feel physical rather than bouncy.
Async states
idle → loading → success | error → idle, driven by one promise. Every face is stacked in the same grid cell, so the button never resizes mid-swap.
Avatars
Image loading, decode, failure and fallback for faces.
- AL
GH
AT
NI
Avatar
Loads over a real request with real latency. Initials sit underneath the image from the first frame, so a 500 costs nothing but a fade.
- AL
GH
AT
+2
Stacked group
Overlapping faces with an overflow count. Each avatar loads on its own staggered delay, which is what a real roster request looks like.
Orbs
Ambient gradient shapes for presence, thinking and backdrops.
Gradient orb
Three blurred blobs drifting behind a circular mask, plus a specular highlight so it reads as a sphere. No canvas, no WebGL.
Pulse orb
A listening indicator driven by a 0–1 level. Rings trail the core by 55ms each, which is what makes it feel responsive rather than mechanical.
Aurora backdrop
A mesh gradient made of four screen-blended blobs. The grain layer is the part that matters — it kills the banding you get on large blurred gradients.
Transitions
Movement between two states without a jump cut.
- Readycross-fade
Fade swap
Cross-fades two renders of the same slot. Both nodes stay mounted for the duration, so the outgoing content leaves instead of vanishing.
Auto height
Expands to the content's real height and keeps tracking it with a ResizeObserver — no max-height guessing, no clipping.
Stagger
Reveals children one after another with a transition-delay per index. Optionally waits for the group to scroll into view first.