Smart skeleton states for React, Vue, Svelte, and vanilla JavaScript.
pnpm i skulletimport { Skeleton } from "skullet/react";
<Skeleton data={user} sample={SAMPLE_USER}>
{(user) => <Card user={user} />}
</Skeleton>;While it loads, the content is measured into a skeleton that takes exactly its space, so nothing moves when it arrives.
See the package README for full API documentation.
pnpm install:allpnpm devpnpm buildFollow me on Twitter.
You might also like:
- torph - An opinionated text morphing library.
- easing.dev - Explore easing curves for your projects.
- web haptics - Haptic feedback for interactions on the web.