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": "border-beam-demo",
"type": "registry:example",
"title": "Border Beam Demo",
"description": "Example showing an animated border beam effect.",
"registryDependencies": [
"@magicui/border-beam"
],
"files": [
{
"path": "registry/example/border-beam-demo.tsx",
"content": "import { 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 { BorderBeam } from \"@/registry/magicui/border-beam\"\n\nexport default function Component() {\n return (\n <Card className=\"relative w-[350px] overflow-hidden\">\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 w-full items-center gap-4\">\n <div className=\"flex flex-col space-y-1.5\">\n <Label htmlFor=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" placeholder=\"Enter your email\" />\n </div>\n <div className=\"flex flex-col space-y-1.5\">\n <Label htmlFor=\"password\">Password</Label>\n <Input\n id=\"password\"\n type=\"password\"\n placeholder=\"Enter your password\"\n />\n </div>\n </div>\n </form>\n </CardContent>\n <CardFooter className=\"flex justify-between\">\n <Button variant=\"outline\">Register</Button>\n <Button>Login</Button>\n </CardFooter>\n <BorderBeam duration={8} size={100} />\n </Card>\n )\n}\n",
"type": "registry:example"
}
]
}