UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: update animated beam examples
Dillion Verma749720ef0c58
diff --git a/registry/components/example/animated-beam-demo.tsx b/registry/components/example/animated-beam-demo.tsxindex da49fb34..87d34ca6 100644--- a/registry/components/example/animated-beam-demo.tsx+++ b/registry/components/example/animated-beam-demo.tsx@@ -13,7 +13,7 @@ const Circle = forwardRef<<divref={ref}className={cn(- "z-10 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",+ "z-10 flex size-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",className,)}>@@ -22,6 +22,8 @@ const Circle = forwardRef<);});+Circle.displayName = "Circle";+export default function AnimatedBeamDemo() {const containerRef = useRef<HTMLDivElement>(null);const div1Ref = useRef<HTMLDivElement>(null);@@ -34,10 +36,10 @@ export default function AnimatedBeamDemo() {return (<div- className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl"+ className="relative flex h-[500px] w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl"ref={containerRef}>- <div className="flex h-full w-full flex-col items-stretch justify-between gap-10">+ <div className="flex size-full flex-col max-w-lg max-h-[200px] items-stretch justify-between gap-10"><div className="flex flex-row items-center justify-between"><Circle ref={div1Ref}><Icons.googleDrive />@@ -50,7 +52,7 @@ export default function AnimatedBeamDemo() {<Circle ref={div2Ref}><Icons.notion /></Circle>- <Circle ref={div4Ref} className="h-16 w-16">+ <Circle ref={div4Ref} className="size-16"><Icons.openai /></Circle><Circle ref={div6Ref}>diff --git a/registry/components/example/animated-beam-multiple-inputs.tsx b/registry/components/example/animated-beam-multiple-inputs.tsxindex f42f2bea..a7a056f4 100644--- a/registry/components/example/animated-beam-multiple-inputs.tsx+++ b/registry/components/example/animated-beam-multiple-inputs.tsx@@ -13,7 +13,7 @@ const Circle = forwardRef<<divref={ref}className={cn(- "z-10 flex h-12 w-12 items-center justify-center rounded-full border-2 border-border bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",+ "z-10 flex size-12 items-center justify-center rounded-full border-2 border-border bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",className,)}>@@ -22,6 +22,8 @@ const Circle = forwardRef<);});+Circle.displayName = "Circle";+export default function AnimatedBeamMultipleInputDemo() {const containerRef = useRef<HTMLDivElement>(null);const div1Ref = useRef<HTMLDivElement>(null);@@ -34,10 +36,10 @@ export default function AnimatedBeamMultipleInputDemo() {return (<div- className="relative flex h-full w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl"+ className="relative flex h-[500px] w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl"ref={containerRef}>- <div className="flex h-full w-full flex-row items-stretch justify-between gap-10">+ <div className="flex size-full flex-row items-stretch justify-between gap-10 max-w-lg"><div className="flex flex-col justify-center gap-2"><Circle ref={div1Ref}><Icons.googleDrive />@@ -56,7 +58,7 @@ export default function AnimatedBeamMultipleInputDemo() {</Circle></div><div className="flex flex-col justify-center">- <Circle ref={div6Ref} className="h-16 w-16">+ <Circle ref={div6Ref} className="size-16"><Icons.openai /></Circle></div>diff --git a/registry/components/example/animated-beam-multiple-outputs.tsx b/registry/components/example/animated-beam-multiple-outputs.tsxindex 708bc647..605faae9 100644--- a/registry/components/example/animated-beam-multiple-outputs.tsx+++ b/registry/components/example/animated-beam-multiple-outputs.tsx@@ -13,7 +13,7 @@ const Circle = forwardRef<<divref={ref}className={cn(- "z-10 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",+ "z-10 flex size-12 items-center justify-center rounded-full border-2 bg-white p-3 shadow-[0_0_20px_-12px_rgba(0,0,0,0.8)]",className,)}>@@ -22,6 +22,8 @@ const Circle = forwardRef<);});+Circle.displayName = "Circle";+export default function AnimatedBeamMultipleOutputDemo({className,}: {@@ -38,20 +40,17 @@ export default function AnimatedBeamMultipleOutputDemo({return (<div- className={cn(- "relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl",- className,- )}+ className="relative flex h-[500px] w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl"ref={containerRef}>- <div className="flex h-full w-full flex-row items-stretch justify-between gap-10">+ <div className="flex size-full max-w-lg flex-row items-stretch justify-between gap-10"><div className="flex flex-col justify-center"><Circle ref={div7Ref}><Icons.user /></Circle></div><div className="flex flex-col justify-center">- <Circle ref={div6Ref} className="h-16 w-16">+ <Circle ref={div6Ref} className="size-16"><Icons.openai /></Circle></div>