V4 introduces AI layout prediction, skeleton tree diffing, the Slot system, visual DevTools,
React 18 streaming hooks, and 10 new primitives — all with zero runtime dependencies.
aurora, midnight, chalk, paper added. All use CSS @layer for clean specificity.
Per-instance scoped vars.
🧩
30 Primitives
SkeletonKanban, SkeletonChatBubble, SkeletonSwitch, SkeletonCalendar + 6 more brand-new
components.
Interactive demo
loading = true
animation:
theme:
stagger ✦
ProductCard
ProfileCard
StatCards
DataTable
✦ = new in V4 · blink and flow
are new animation styles · aurora, chalk, paper are new themes
10 brand-new primitives in V4. These are
impossible to build with V1-V3.
Feature
V1
V2
V3
V4
Slot System — zero-ambiguity skeletons
import{ AutoSkeleton, SkeletonSlot }from'auto-loading-skeleton-v4';// Mark explicit regions with SkeletonSlot — confidence = 1.0functionProductCard({ product }) {return(<div><SkeletonSlottype="image"height="200px"/><SkeletonSlottype="heading"width="70%"/><SkeletonSlottype="text"lines={3} /><SkeletonSlottype="button"width="120px"/>{/* Real content — shown when loading=false */}<imgsrc={product.img}/><h2>{product.title}</h2><p>{product.desc}</p><button>Add to cart</button></div>);}<AutoSkeletonloading={loading}><ProductCardproduct={data}/></AutoSkeleton>
import{ SkeletonDevTools }from'auto-loading-skeleton-v4';// Add once to app root — renders null in production automaticallyfunctionApp() {return(<><YourApp/><SkeletonDevTools/>// floating panel, dev only</>);}// Panel shows:// • Descriptor tree with confidence % per node// • Cache hits / misses / hit rate// • All active loading instances// • Animation + theme per instance