Fortura/apps/www/public/r/spring-element-demo.json
2025-08-20 04:12:49 -06:00

18 lines
1.1 KiB
JSON

{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "spring-element-demo",
"type": "registry:ui",
"title": "Spring Element Demo",
"description": "Demo showing a Spring Element attached to an avatar.",
"registryDependencies": [
"https://animate-ui.com/r/spring-element"
],
"files": [
{
"path": "registry/demo/components/spring-element/index.tsx",
"content": "import { SpringElement } from '@/components/animate-ui/components/spring-element';\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from '@/components/ui/avatar';\n\nexport default function SpringElementDemo() {\n return (\n <SpringElement>\n <Avatar className=\"size-20\">\n <AvatarImage\n draggable={false}\n src=\"https://pbs.twimg.com/profile_images/1897311929028255744/otxpL-ke_400x400.jpg\"\n />\n <AvatarFallback>AK</AvatarFallback>\n </Avatar>\n </SpringElement>\n );\n}\n",
"type": "registry:ui",
"target": "components/animate-ui/demo/components/spring-element.tsx"
}
]
}