Dillion Verma

Border Beam

Cards 501

About

An animated beam of light which travels along the border of its container.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Border Beam to your project and fits it to your theme.

Code

How Border Beam is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import BorderBeam from "@/components/ui/border-beam";

const settings = {
  colorFrom: "#ffaa40",
  colorTo: "#9c40ff",
  size: 200,
  anchor: 90,
  borderWidth: 1.5,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen flex items-center justify-center">
      <div className="relative h-64 w-96 overflow-hidden rounded-xl border bg-background">
        <BorderBeam
          colorFrom={s.colorFrom}
          colorTo={s.colorTo}
          size={s.size}
          anchor={s.anchor}
          borderWidth={s.borderWidth}
        />
      </div>
    </div>
  );
}

More by Dillion Verma

View all
  • Interactive Hover Button

    Interactive Hover Button

    3.6K
  • Rainbow Button

    Rainbow Button

    2.5K
  • Globe

    Globe

    2.3K
  • Animated Beam

    Animated Beam

    2.1K
  • Text Reveal

    Text Reveal

    1.7K
  • Confetti

    Confetti

    1.2K
  • Sparkles Text

    Sparkles Text

    1.2K
  • Interactive Icon Cloud

    Interactive Icon Cloud

    1.1K

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    36
  • Course Design Cards

    Course Design Cards

    1.2K
  • Statistics Card 2

    Statistics Card 2

    298
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    535
  • Statistics Card 7

    Statistics Card 7

    320
  • Card Studio

    Card Studio

    37
  • Statistics Card 10

    Statistics Card 10

    289
  • The Item one

    The Item one

    3