Skeleton
Use to show a placeholder while content is loading.
Installation
pnpm add @notion-kit/uiAPI Reference
Skeleton
An Skeleton extends the HTML <div> component.
Use to show a placeholder while content is loading.
pnpm add @notion-kit/uiAn Skeleton extends the HTML <div> component.
import { Skeleton } from "@notion-kit/ui/primitives";
export default function Demo() {
return (
<div className="flex items-center space-x-4">
<Skeleton className="size-12 rounded-full" />
<div className="space-y-2">
<Skeleton className="h-4 w-[250px]" />
<Skeleton className="h-4 w-[200px]" />
</div>
</div>
);
}
pnpm add @notion-kit/ui