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 animated beam examples

Dillion Vermaf4691c6a2bfd
diff --git a/registry/components/example/animated-beam-multiple-inputs.tsx b/registry/components/example/animated-beam-multiple-inputs.tsx
index a7a056f4..c922a6db 100644
--- a/registry/components/example/animated-beam-multiple-inputs.tsx
+++ b/registry/components/example/animated-beam-multiple-inputs.tsx
@@ -24,7 +24,11 @@ const Circle = forwardRef<
Circle.displayName = "Circle";
-export default function AnimatedBeamMultipleInputDemo() {
+export default function AnimatedBeamMultipleOutputDemo({
+ className,
+}: {
+ className?: string;
+}) {
const containerRef = useRef<HTMLDivElement>(null);
const div1Ref = useRef<HTMLDivElement>(null);
const div2Ref = useRef<HTMLDivElement>(null);
@@ -36,7 +40,10 @@ export default function AnimatedBeamMultipleInputDemo() {
return (
<div
- className="relative flex h-[500px] w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl"
+ className={cn(
+ "relative flex h-[500px] w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl",
+ className,
+ )}
ref={containerRef}
>
<div className="flex size-full flex-row items-stretch justify-between gap-10 max-w-lg">
diff --git a/registry/components/example/animated-beam-multiple-outputs.tsx b/registry/components/example/animated-beam-multiple-outputs.tsx
index 605faae9..c6360b34 100644
--- a/registry/components/example/animated-beam-multiple-outputs.tsx
+++ b/registry/components/example/animated-beam-multiple-outputs.tsx
@@ -40,7 +40,10 @@ export default function AnimatedBeamMultipleOutputDemo({
return (
<div
- className="relative flex h-[500px] w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl"
+ className={cn(
+ "relative flex h-[500px] w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl",
+ className,
+ )}
ref={containerRef}
>
<div className="flex size-full max-w-lg flex-row items-stretch justify-between gap-10">
diff --git a/registry/components/example/bento-demo.tsx b/registry/components/example/bento-demo.tsx
index 823a2e6d..33318633 100644
--- a/registry/components/example/bento-demo.tsx
+++ b/registry/components/example/bento-demo.tsx
@@ -84,7 +84,7 @@ const Notification = ({ name, description, icon, color, time }: Item) => {
return (
<figure
className={cn(
- "relative mx-auto min-h-fit w-full max-w-[400px] transform cursor-pointer overflow-hidden rounded-2xl p-4",
+ "relative mx-auto min-h-fit w-full max-w-[400px] cursor-pointer overflow-hidden rounded-2xl p-4",
// animation styles
"transition-all duration-200 ease-in-out hover:scale-[103%]",
// light styles
@@ -95,7 +95,7 @@ const Notification = ({ name, description, icon, color, time }: Item) => {
>
<div className="flex flex-row items-center gap-3">
<div
- className="flex h-10 w-10 items-center justify-center rounded-2xl"
+ className="flex size-10 items-center justify-center rounded-2xl"
style={{
backgroundColor: color,
}}