Skeleton
Placeholder lines and blocks for content that's loading.
Component
Skeleton belongs to the Data group in the CyberSpec catalog. It uses markup and CSS.
Installation
Use a React 19 project with shadcn configured. Render the installed components inside the Cyber root, and import your global stylesheet in the app entry point.
bunx --bun shadcn@latest add https://www.cyberspec.dev/r/skeleton.json
Example
"use client"
import { Skeleton, SkeletonGroup, SkeletonRow } from "@/components/ui/skeleton"
export default function SkeletonDemo() {
return (
<>
<SkeletonGroup label="Decrypting dossier" framed>
<SkeletonRow>
<Skeleton shape="tile" width={40} />
<Skeleton lines={2} />
</SkeletonRow>
<Skeleton shape="block" height={76} />
<Skeleton lines={3} />
</SkeletonGroup>
</>
)
}
Install this example
bunx --bun shadcn@latest add https://www.cyberspec.dev/r/skeleton-demo.json