Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md
Skullet
Smart skeleton states for React, Vue, Svelte, and vanilla JavaScript.
Installation
pnpm i skulletUsage
import { 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.
Contributing
Install dependencies
pnpm install:allDev/Watch Library and Example
pnpm devBuild Library
pnpm buildFound this useful?
Follow me on Twitter.
Other projects
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.