UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "shine-border-demo-2",
"type": "registry:example",
"title": "Shine Border Demo 2",
"description": "Second example showing an animated shining border effect.",
"registryDependencies": [
"@magicui/shine-border"
],
"files": [
{
"path": "registry/example/shine-border-demo-2.tsx",
"content": "\"use client\"\n\nimport { useTheme } from \"next-themes\"\n\nimport { Button } from \"@/components/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\nimport { ShineBorder } from \"@/registry/magicui/shine-border\"\n\nexport default function ShineBorderDemo2() {\n const theme = useTheme()\n return (\n <Card className=\"relative overflow-hidden\">\n <ShineBorder shineColor={theme.theme === \"dark\" ? \"white\" : \"black\"} />\n <CardHeader>\n <CardTitle>Login</CardTitle>\n <CardDescription>\n Enter your credentials to access your account\n </CardDescription>\n </CardHeader>\n <CardContent>\n <form>\n <div className=\"grid gap-4\">\n <div className=\"grid gap-2\">\n <Label htmlFor=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" placeholder=\"[email protected]\" />\n </div>\n <div className=\"grid gap-2\">\n <Label htmlFor=\"password\">Password</Label>\n <Input id=\"password\" type=\"password\" />\n </div>\n </div>\n </form>\n </CardContent>\n <CardFooter>\n <Button className=\"w-full\">Sign In</Button>\n </CardFooter>\n </Card>\n )\n}\n",
"type": "registry:example"
}
]
}