Animated Beam Multiple Input
Animated Beam Multiple Input is a React and Tailwind CSS effect component from UI Layouts, licensed MIT. Copy it and paste it into your project.
UI Layouts
MIT
effects
What it is
Animated Beam Multiple Input is a React and Tailwind CSS effect component from UI Layouts, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Five free copies a month. No card.
No packages beyond the project baseline
Licence
This component comes from UI Layouts and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Animated Beam Multiple Input
'use client';
import { AnimatedBeam, Circle, Icons } from '@/components/ui/animated-beam';
import { cn } from '@/lib/utils';
import React, { forwardRef, useRef } from 'react';
export default function AnimatedBeamMultipleInput() {
const containerRef = useRef<HTMLDivElement>(null);
const div1Ref = useRef<HTMLDivElement>(null);
const div2Ref = useRef<HTMLDivElement>(null);
const div3Ref = useRef<HTMLDivElement>(null);
const div4Ref = useRef<HTMLDivElement>(null);
const div5Ref = useRef<HTMLDivElement>(null);
const div6Ref = useRef<HTMLDivElement>(null);
const div7Ref = useRef<HTMLDivElement>(null);
return (
<div
className='relative flex h-full w-full max-w-lg mx-auto items-center justify-center overflow-hidden rounded-lg border dark:bg-neutral-800 bg-neutral-50 lg:p-10 sm:p-4 p-2 md:shadow-xl'
ref={containerRef}
>
<div className='flex h-full w-full flex-row items-stretch justify-between gap-10'>
<div className='flex flex-col justify-center gap-2'>
<Circle ref={div1Ref}>
<Icons.typescript />
</Circle>
<Circle ref={div2Ref} className='p-2'>
<Icons.tailwindcss />
</Circle>
<Circle ref={div3Ref} className='p-2'>
<Icons.gsap />
</Circle>
<Circle ref={div4Ref} className='p-2'>
<Icons.reactjs />
</Circle>
<Circle ref={div5Ref} className='p-2'>
<Icons.framer />
</Circle>
</div>
<div className='flex flex-col justify-center'>
<Circle ref={div6Ref} className='h-16 w-16'>
<Icons.logo />
</Circle>
</div>
<div className='flex flex-col justify-center'>
<Circle ref={div7Ref}>
<Icons.user />
</Circle>
</div>
</div>
<AnimatedBeam
containerRef={containerRef}
fromRef={div1Ref}
toRef={div6Ref}
dotted
dotSpacing={6}
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div2Ref}
toRef={div6Ref}
dotted
gradientStartColor='#006ae3'
gradientStopColor='#1194ff'
dotSpacing={6}
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div3Ref}
toRef={div6Ref}
gradientStartColor='#00ac47'
gradientStopColor='#4fcc5d'
dotted
dotSpacing={6}
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div4Ref}
toRef={div6Ref}
dotted
gradientStartColor='#006ae3'
gradientStopColor='#1194ff'
dotSpacing={6}
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div5Ref}
toRef={div6Ref}
dotted
dotSpacing={6}
gradientStartColor='#d948ae'
gradientStopColor='#5b60ff'
/>
<AnimatedBeam
containerRef={containerRef}
fromRef={div6Ref}
toRef={div7Ref}
dotted
dotSpacing={6}
/>
</div>
);
}