Skeleton
Motion-animated loading placeholders with shapes, effects, and customizable colors.
Playground
Live preview
Examples
All effects
shimmer
pulse
wave
none
All shapes
default
text
circle
avatar
card
button
input
Composed examples
form mock (inputs + submit)
Custom colors
surface-subtle + action-primary highlight
white / action-orange highlights
bg prop: hex, var(--token), works with every effect
Code
import { Skeleton, SkeletonText, SkeletonAvatar } from "@npolyhunter/ui";
// Single block — pick a shape and effect
<Skeleton shape="card" effect="shimmer" className="h-32 w-64" />
// Staggered text lines (last line is 2/3 width)
<SkeletonText lines={4} effect="wave" />
// Avatar with size
<SkeletonAvatar size={48} delay={0.2} />
// Custom colors + speed
<Skeleton
shape="button"
bg="#82ffcf"
highlightClassName="bg-[linear-gradient(105deg,transparent_30%,#0b0d12_50%,transparent_70%)]"
duration={2.4}
className="h-10 w-32"
/>Used in
Includes use through shared UI components.
AppBack Office
