Skeleton

A scribble-fill placeholder. Pulse reseeds the hatch on an interval so the doodle redraws instead of shimmering.

<Skeleton variant="rect" pulse={true} roughness={1.5} />

CLI install

npx doodleui-react add skeleton

Usage

import { Skeleton } from "doodleui-react";

<Skeleton variant="rect" height={72} />
<Skeleton variant="text" />
<Skeleton variant="circle" />

Marked aria-hidden. Pair it with Progress or Stepper while real content loads.

Props

PropTypeDefaultNotes
variant"text" | "rect" | "circle""rect"Placeholder shape.
pulsebooleantrueReseeds the hatch on an interval so the scribble redraws.
width / heightnumber | stringvaries by variantBox size. Circle defaults to 40×40.
roughnessnumber1.5How wobbly the stroke is. 0 is almost geometric. 3+ is messy.
seednumberprovider / randomLocks the sketch. Omit to follow SketchSeedProvider (Shuffle) or a mount-time random seed.
sketchColorstring#1f1d1aStroke color. Also tints primary/accent fills where relevant.
classNamestringundefinedPassed through to the root element.
styleCSSPropertiesundefinedPassed through to the root element.