Files
cosscom__coss/apps/ui/public/r/skeleton.json
Volnei Munhoz d5a915e6d0 add biome
2025-11-13 19:19:31 -03:00

25 lines
1.0 KiB
JSON

{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "skeleton",
"type": "registry:ui",
"files": [
{
"path": "registry/default/ui/skeleton.tsx",
"content": "import { cn } from \"@/lib/utils\"\n\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"skeleton\"\n className={cn(\n \"animate-skeleton rounded-sm [--skeleton-highlight:--alpha(var(--color-white)/64%)] [background:linear-gradient(120deg,transparent_40%,var(--skeleton-highlight),transparent_60%)_var(--color-muted)_0_0_/_200%_100%_fixed] dark:[--skeleton-highlight:--alpha(var(--color-white)/4%)]\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Skeleton }\n",
"type": "registry:ui"
}
],
"cssVars": {
"theme": {
"--animate-skeleton": "skeleton 2s -1s infinite linear"
}
},
"css": {
"@keyframes skeleton": {
"to": {
"background-position": "-200% 0"
}
}
}
}