Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: update border beam docs

Dillion Verma7b12ffb3c581
diff --git a/__registry__/index.tsx b/__registry__/index.tsx
index b8123d69..889a0384 100644
--- a/__registry__/index.tsx
+++ b/__registry__/index.tsx
@@ -201,6 +201,30 @@ export const Index: Record<string, any> = {
}),
meta: undefined,
},
+ pointer: {
+ name: "pointer",
+ description:
+ "A component that displays a pointer when hovering over an element",
+ type: "registry:ui",
+ registryDependencies: undefined,
+ files: [
+ {
+ path: "registry/magicui/pointer.tsx",
+ type: "registry:ui",
+ target: "components/magicui/pointer.tsx",
+ },
+ ],
+ component: React.lazy(async () => {
+ const mod = await import("@/registry/magicui/pointer.tsx");
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object",
+ ) || item.name;
+ return { default: mod.default || mod[exportName] };
+ }),
+ meta: undefined,
+ },
"neon-gradient-card": {
name: "neon-gradient-card",
description: "A beautiful neon card effect",
@@ -1784,6 +1808,32 @@ export const Index: Record<string, any> = {
}),
meta: undefined,
},
+ "pointer-demo-1": {
+ name: "pointer-demo-1",
+ description: "Example showing a pointer effect component",
+ type: "registry:example",
+ registryDependencies: [
+ "https://magicui.design/r/dot-pattern",
+ "https://magicui.design/r/pointer",
+ ],
+ files: [
+ {
+ path: "registry/example/pointer-demo-1.tsx",
+ type: "registry:example",
+ target: "components/pointer-demo-1.tsx",
+ },
+ ],
+ component: React.lazy(async () => {
+ const mod = await import("@/registry/example/pointer-demo-1.tsx");
+ const exportName =
+ Object.keys(mod).find(
+ (key) =>
+ typeof mod[key] === "function" || typeof mod[key] === "object",
+ ) || item.name;
+ return { default: mod.default || mod[exportName] };
+ }),
+ meta: undefined,
+ },
"neon-gradient-card-demo": {
name: "neon-gradient-card-demo",
description: "Example showing a beautiful neon card effect.",
diff --git a/content/docs/components/border-beam.mdx b/content/docs/components/border-beam.mdx
index 541e6190..4dee8749 100644
--- a/content/docs/components/border-beam.mdx
+++ b/content/docs/components/border-beam.mdx
@@ -55,14 +55,14 @@ npx shadcn@latest add "https://magicui.design/r/border-beam"
## Usage
-Just place the border beam component inside a div with relative positioning, width, and height. You will notice the beam automatically moves around the perimeter of it's container.
+Just place the border beam component inside a div with `relative` positioning, and `overflow-hidden`. You will notice the beam automatically moves around the perimeter of it's container.
```tsx
import { BorderBeam } from "@/components/magicui/border-beam.tsx";
export default async function App() {
return (
- <div className="relative h-[200px] w-[200px] rounded-xl">
+ <div className="relative overflow-hidden">
<BorderBeam />
</div>
);
diff --git a/public/r/border-beam-demo-2.json b/public/r/border-beam-demo-2.json
index cf2949f2..5f4e3fef 100644
--- a/public/r/border-beam-demo-2.json
+++ b/public/r/border-beam-demo-2.json
@@ -12,7 +12,7 @@
"files": [
{
"path": "registry/example/border-beam-demo-2.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 { BorderBeam } from \"@/components/magicui/border-beam\";\nimport { Play, SkipBack, SkipForward } from \"lucide-react\";\n\nexport default function MusicPlayer() {\n return (\n <Card className=\"relative w-[350px]\">\n <CardHeader>\n <CardTitle>Now Playing</CardTitle>\n <CardDescription>Stairway to Heaven - Led Zeppelin</CardDescription>\n </CardHeader>\n <CardContent>\n <div className=\"flex flex-col items-center gap-4\">\n <div className=\"h-48 w-48 rounded-lg bg-gradient-to-br from-purple-500 to-pink-500\" />\n <div className=\"h-1 w-full rounded-full bg-secondary\">\n <div className=\"h-full w-1/3 rounded-full bg-primary\" />\n </div>\n <div className=\"flex w-full justify-between text-sm text-muted-foreground\">\n <span>2:45</span>\n <span>8:02</span>\n </div>\n </div>\n </CardContent>\n <CardFooter className=\"flex justify-center gap-4\">\n <Button variant=\"outline\" size=\"icon\" className=\"rounded-full\">\n <SkipBack className=\"size-4\" />\n </Button>\n <Button size=\"icon\" className=\"rounded-full\">\n <Play className=\"size-4\" />\n </Button>\n <Button variant=\"outline\" size=\"icon\" className=\"rounded-full\">\n <SkipForward className=\"size-4\" />\n </Button>\n </CardFooter>\n <BorderBeam\n duration={6}\n size={400}\n className=\"from-transparent via-red-500 to-transparent\"\n />\n <BorderBeam\n duration={6}\n delay={3}\n size={400}\n className=\"from-transparent via-blue-500 to-transparent\"\n />\n </Card>\n );\n}\n",
+ "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 { BorderBeam } from \"@/components/magicui/border-beam\";\nimport { Play, SkipBack, SkipForward } from \"lucide-react\";\n\nexport default function MusicPlayer() {\n return (\n <Card className=\"relative w-[350px] overflow-hidden\">\n <CardHeader>\n <CardTitle>Now Playing</CardTitle>\n <CardDescription>Stairway to Heaven - Led Zeppelin</CardDescription>\n </CardHeader>\n <CardContent>\n <div className=\"flex flex-col items-center gap-4\">\n <div className=\"h-48 w-48 rounded-lg bg-gradient-to-br from-purple-500 to-pink-500\" />\n <div className=\"h-1 w-full rounded-full bg-secondary\">\n <div className=\"h-full w-1/3 rounded-full bg-primary\" />\n </div>\n <div className=\"flex w-full justify-between text-sm text-muted-foreground\">\n <span>2:45</span>\n <span>8:02</span>\n </div>\n </div>\n </CardContent>\n <CardFooter className=\"flex justify-center gap-4\">\n <Button variant=\"outline\" size=\"icon\" className=\"rounded-full\">\n <SkipBack className=\"size-4\" />\n </Button>\n <Button size=\"icon\" className=\"rounded-full\">\n <Play className=\"size-4\" />\n </Button>\n <Button variant=\"outline\" size=\"icon\" className=\"rounded-full\">\n <SkipForward className=\"size-4\" />\n </Button>\n </CardFooter>\n <BorderBeam\n duration={6}\n size={400}\n className=\"from-transparent via-red-500 to-transparent\"\n />\n <BorderBeam\n duration={6}\n delay={3}\n size={400}\n className=\"from-transparent via-blue-500 to-transparent\"\n />\n </Card>\n );\n}\n",
"type": "registry:example",
"target": "components/border-beam-demo-2.tsx"
}
diff --git a/public/r/border-beam-demo-3.json b/public/r/border-beam-demo-3.json
index 572c34ce..9bd42b88 100644
--- a/public/r/border-beam-demo-3.json
+++ b/public/r/border-beam-demo-3.json
@@ -14,7 +14,7 @@
"files": [
{
"path": "registry/example/border-beam-demo-3.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 \"@/components/magicui/border-beam\";\n\nexport default function LoginForm() {\n return (\n <Card className=\"relative w-[350px]\">\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\n duration={4}\n size={300}\n reverse\n className=\"from-transparent via-green-500 to-transparent\"\n />\n </Card>\n );\n}\n",
+ "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 \"@/components/magicui/border-beam\";\n\nexport default function LoginForm() {\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\n duration={4}\n size={300}\n reverse\n className=\"from-transparent via-green-500 to-transparent\"\n />\n </Card>\n );\n}\n",
"type": "registry:example",
"target": "components/border-beam-demo-3.tsx"
}
diff --git a/public/r/border-beam-demo-4.json b/public/r/border-beam-demo-4.json
index e63848d1..c81a2247 100644
--- a/public/r/border-beam-demo-4.json
+++ b/public/r/border-beam-demo-4.json
@@ -11,7 +11,7 @@
"files": [
{
"path": "registry/example/border-beam-demo-4.tsx",
- "content": "import { Button } from \"@/components/ui/button\";\nimport { BorderBeam } from \"@/components/magicui/border-beam\";\n\nexport default function Component() {\n return (\n <Button className=\"relative\" size=\"lg\" variant=\"outline\">\n Buy Now\n <BorderBeam\n size={40}\n initialOffset={20}\n className=\"from-transparent via-yellow-500 to-transparent\"\n transition={{\n type: \"spring\",\n stiffness: 60,\n damping: 20,\n }}\n />\n </Button>\n );\n}\n",
+ "content": "import { Button } from \"@/components/ui/button\";\nimport { BorderBeam } from \"@/components/magicui/border-beam\";\n\nexport default function Component() {\n return (\n <Button className=\"relative overflow-hidden\" size=\"lg\" variant=\"outline\">\n Buy Now\n <BorderBeam\n size={40}\n initialOffset={20}\n className=\"from-transparent via-yellow-500 to-transparent\"\n transition={{\n type: \"spring\",\n stiffness: 60,\n damping: 20,\n }}\n />\n </Button>\n );\n}\n",
"type": "registry:example",
"target": "components/border-beam-demo-4.tsx"
}
diff --git a/public/r/border-beam-demo.json b/public/r/border-beam-demo.json
index 199414e3..1b14a3f2 100644
--- a/public/r/border-beam-demo.json
+++ b/public/r/border-beam-demo.json
@@ -10,7 +10,7 @@
"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 \"@/components/magicui/border-beam\";\n\nexport default function Component() {\n return (\n <Card className=\"relative w-[350px]\">\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",
+ "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 \"@/components/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",
"target": "components/border-beam-demo.tsx"
}
diff --git a/public/r/pointer-demo-1.json b/public/r/pointer-demo-1.json
new file mode 100644
index 00000000..7c8544e7
--- /dev/null
+++ b/public/r/pointer-demo-1.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "pointer-demo-1",
+ "type": "registry:example",
+ "title": "Pointer Demo 1",
+ "description": "Example showing a pointer effect component",
+ "registryDependencies": [
+ "https://magicui.design/r/dot-pattern",
+ "https://magicui.design/r/pointer"
+ ],
+ "files": [
+ {
+ "path": "registry/example/pointer-demo-1.tsx",
+ "content": "\"use client\";\n\nimport { PointerWrapper } from \"@/components/magicui/pointer\";\nimport { DotPattern } from \"@/components/magicui/dot-pattern\";\nimport { cn } from \"@/lib/utils\";\n\nexport default function PointerDemo1() {\n return (\n <PointerWrapper className=\"w-full\">\n <div className=\"relative h-[500px] w-full flex items-center justify-center overflow-hidden rounded-lg border bg-background\">\n <p className=\"z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-white\">\n Pointer\n </p>\n <DotPattern\n className={cn(\n \"[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]\",\n )}\n />\n </div>\n </PointerWrapper>\n );\n}\n",
+ "type": "registry:example",
+ "target": "components/pointer-demo-1.tsx"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/pointer.json b/public/r/pointer.json
new file mode 100644
index 00000000..a1b9baa9
--- /dev/null
+++ b/public/r/pointer.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "pointer",
+ "type": "registry:ui",
+ "title": "Pointer",
+ "description": "A component that displays a pointer when hovering over an element",
+ "dependencies": [
+ "motion"
+ ],
+ "files": [
+ {
+ "path": "registry/magicui/pointer.tsx",
+ "content": "\"use client\";\n\nimport React, { useState, useEffect, useRef } from \"react\";\n\nimport { AnimatePresence, motion, useMotionValue } from \"motion/react\";\n\nimport { cn } from \"@/lib/utils\";\n\n/**\n * @property {React.ReactNode} children - The child elements to be wrapped\n * @property {string} [className] - Optional CSS classes to be applied to the wrapper\n */\ninterface PointerWrapperProps {\n children: React.ReactNode;\n className?: string;\n}\n\n/**\n * A component that wraps content and adds a custom pointer animation when hovering\n * over the wrapped area. The pointer follows the mouse movement within the wrapped area.\n *\n * @component\n * @param {PointerWrapperProps} props - The component props\n */\nexport function PointerWrapper({ children, className }: PointerWrapperProps) {\n const x = useMotionValue(0);\n const y = useMotionValue(0);\n\n const ref = useRef<HTMLDivElement>(null);\n const [rect, setRect] = useState<DOMRect | null>(null);\n const [isInside, setIsInside] = useState<boolean>(false);\n\n useEffect(() => {\n if (ref.current) {\n setRect(ref.current.getBoundingClientRect());\n }\n }, []);\n\n function handleMouseMove(e: React.MouseEvent<HTMLDivElement>) {\n if (rect) {\n const scrollX = window.scrollX;\n const scrollY = window.scrollY;\n\n x.set(e.clientX - rect.left + scrollX);\n y.set(e.clientY - rect.top + scrollY);\n }\n }\n\n function handleMouseLeave() {\n setIsInside(false);\n }\n\n function handleMouseEnter() {\n setIsInside(true);\n }\n\n return (\n <div\n className={cn(\"relative\", className)}\n ref={ref}\n style={{\n cursor: \"none\",\n }}\n onMouseLeave={handleMouseLeave}\n onMouseEnter={handleMouseEnter}\n onMouseMove={handleMouseMove}\n >\n <AnimatePresence>{isInside && <Pointer x={x} y={y} />}</AnimatePresence>\n {children}\n </div>\n );\n}\n\n/**\n * @property {MotionValue<number>} x - The x-coordinate position of the pointer\n * @property {MotionValue<number>} y - The y-coordinate position of the pointer\n */\ninterface PointerProps {\n x: any;\n y: any;\n}\n\n/**\n * A custom pointer component that displays an animated arrow cursor\n *\n * @description Used internally by PointerWrapper to show the custom cursor\n *\n * @component\n * @param {PointerProps} props - The component props\n */\nfunction Pointer({ x, y }: PointerProps): JSX.Element {\n return (\n <motion.div\n className=\"h-4 w-4 rounded-full absolute z-50\"\n style={{\n top: y,\n left: x,\n pointerEvents: \"none\",\n }}\n initial={{\n scale: 1,\n opacity: 1,\n }}\n animate={{\n scale: 1,\n opacity: 1,\n }}\n exit={{\n scale: 0,\n opacity: 0,\n }}\n >\n <svg\n stroke=\"currentColor\"\n fill=\"currentColor\"\n strokeWidth=\"1\"\n viewBox=\"0 0 16 16\"\n className=\"h-6 w-6 text-black transform -rotate-[70deg] -translate-x-[12px] -translate-y-[10px] stroke-white\"\n height=\"1em\"\n width=\"1em\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M14.082 2.182a.5.5 0 0 1 .103.557L8.528 15.467a.5.5 0 0 1-.917-.007L5.57 10.694.803 8.652a.5.5 0 0 1-.006-.916l12.728-5.657a.5.5 0 0 1 .556.103z\"></path>\n </svg>\n </motion.div>\n );\n}\n",
+ "type": "registry:ui",
+ "target": "components/magicui/pointer.tsx"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/registry.json b/registry.json
index 09e91f8d..879af337 100644
--- a/registry.json
+++ b/registry.json
@@ -248,6 +248,22 @@
}
]
},
+ {
+ "name": "pointer",
+ "type": "registry:ui",
+ "title": "Pointer",
+ "description": "A component that displays a pointer when hovering over an element",
+ "dependencies": [
+ "motion"
+ ],
+ "files": [
+ {
+ "path": "registry/magicui/pointer.tsx",
+ "type": "registry:ui",
+ "target": "components/magicui/pointer.tsx"
+ }
+ ]
+ },
{
"name": "neon-gradient-card",
"type": "registry:ui",
@@ -1577,6 +1593,23 @@
}
]
},
+ {
+ "name": "pointer-demo-1",
+ "type": "registry:example",
+ "title": "Pointer Demo 1",
+ "description": "Example showing a pointer effect component",
+ "registryDependencies": [
+ "https://magicui.design/r/dot-pattern",
+ "https://magicui.design/r/pointer"
+ ],
+ "files": [
+ {
+ "path": "registry/example/pointer-demo-1.tsx",
+ "type": "registry:example",
+ "target": "components/pointer-demo-1.tsx"
+ }
+ ]
+ },
{
"name": "neon-gradient-card-demo",
"type": "registry:example",
diff --git a/registry/example/border-beam-demo-2.tsx b/registry/example/border-beam-demo-2.tsx
index 369662f2..83727491 100644
--- a/registry/example/border-beam-demo-2.tsx
+++ b/registry/example/border-beam-demo-2.tsx
@@ -12,7 +12,7 @@ import { Play, SkipBack, SkipForward } from "lucide-react";
export default function MusicPlayer() {
return (
- <Card className="relative w-[350px]">
+ <Card className="relative w-[350px] overflow-hidden">
<CardHeader>
<CardTitle>Now Playing</CardTitle>
<CardDescription>Stairway to Heaven - Led Zeppelin</CardDescription>
diff --git a/registry/example/border-beam-demo-3.tsx b/registry/example/border-beam-demo-3.tsx
index 5150a1b4..d1da9fde 100644
--- a/registry/example/border-beam-demo-3.tsx
+++ b/registry/example/border-beam-demo-3.tsx
@@ -13,7 +13,7 @@ import { BorderBeam } from "@/registry/magicui/border-beam";
export default function LoginForm() {
return (
- <Card className="relative w-[350px]">
+ <Card className="relative w-[350px] overflow-hidden">
<CardHeader>
<CardTitle>Login</CardTitle>
<CardDescription>
diff --git a/registry/example/border-beam-demo-4.tsx b/registry/example/border-beam-demo-4.tsx
index 6e1dfdc0..d2c3fc66 100644
--- a/registry/example/border-beam-demo-4.tsx
+++ b/registry/example/border-beam-demo-4.tsx
@@ -3,7 +3,7 @@ import { BorderBeam } from "@/registry/magicui/border-beam";
export default function Component() {
return (
- <Button className="relative" size="lg" variant="outline">
+ <Button className="relative overflow-hidden" size="lg" variant="outline">
Buy Now
<BorderBeam
size={40}
diff --git a/registry/example/border-beam-demo.tsx b/registry/example/border-beam-demo.tsx
index b8df2b0a..60c44729 100644
--- a/registry/example/border-beam-demo.tsx
+++ b/registry/example/border-beam-demo.tsx
@@ -13,7 +13,7 @@ import { BorderBeam } from "@/registry/magicui/border-beam";
export default function Component() {
return (
- <Card className="relative w-[350px]">
+ <Card className="relative w-[350px] overflow-hidden">
<CardHeader>
<CardTitle>Login</CardTitle>
<CardDescription>