Docs
骨架

骨架

在内容加载时,使用骨架作为占位符。

安装

npx shadcn-ui@latest add skeleton

使用

import { Skeleton } from "@/components/ui/skeleton"
<Skeleton className="w-[100px] h-[20px] rounded-full" />

示例

卡片