shadcn-vue/apps/www/src/public/r/styles/default/skeleton.json
2024-11-21 15:23:29 +08:00

23 lines
802 B
JSON

{
"name": "skeleton",
"type": "registry:ui",
"dependencies": [],
"registryDependencies": [
"utils"
],
"files": [
{
"path": "ui/skeleton/Skeleton.vue",
"content": "<script setup lang=\"ts\">\nimport type { HTMLAttributes } from 'vue'\nimport { cn } from '@/lib/utils'\n\ninterface SkeletonProps {\n class?: HTMLAttributes['class']\n}\n\nconst props = defineProps<SkeletonProps>()\n</script>\n\n<template>\n <div :class=\"cn('animate-pulse rounded-md bg-muted', props.class)\" />\n</template>\n",
"type": "registry:ui",
"target": "skeleton/Skeleton.vue"
},
{
"path": "ui/skeleton/index.ts",
"content": "export { default as Skeleton } from './Skeleton.vue'\n",
"type": "registry:ui",
"target": "skeleton/index.ts"
}
]
}