Installation & details
Border Beam by Magic UI. An animated beam of light which travels along the border of its container. Try the live React demo, inspect the original source, and install from PODIE.
React · Tailwind CSS · MIT license · Original registry
Added to PODIE · Catalog updated · Page updated
Installation and usage
The published examples target React 19 and Tailwind CSS 4. See the recorded installation tests and their limits; verify compatibility in your own project.
01 — Set up your project
First component? Initialize shadcn once.
pnpm dlx shadcn@latest init02 — Install the component
pnpm dlx shadcn@latest add https://podie.dev/r/magicui--border-beam.json03 — Add it to your interface
Import the component from the path created by the installer.
"use client";
import { BorderBeam } from '@/components/magicui/border-beam';
export default function Example() {
return (
<div className="relative overflow-hidden rounded-xl border p-8">
Your content
<BorderBeam size={100} duration={8} />
</div>
);
}Dependencies and distribution
motion The CLI installs declared dependencies. React is a project prerequisite; scenes may include bundled libraries with their own notices.
By Magic UI · MIT license. Original component source and license included.