Lochie Axon shared Skullet, a library that measures your components and draws skeleton loading states in their shape.
Wrap a component in Skeleton. While its data is null, Skullet renders a hidden sample and traces its shape. You can also use a loading prop for plain children, or a static Skeleton for a chart or canvas that won't measure well.
Version 0.0.3 supports React, Vue, Svelte, and vanilla JavaScript. Install it with npm i skullet. The library is MIT licensed.







