appica-dev

Border Beam

Buttons 8

About

An animated glowing comet that travels around an element's border, used to draw attention to cards, buttons, or loading states.

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";
import { buttonVariants } from "@/components/ui/button";
import { cn } from "@/lib/utils";

export default function BorderBeamRevealOnInteraction() {
  return (
    <div className="flex flex-wrap items-center justify-center gap-8">
      <BorderBeam
        revealOn="hover"
        showOnTouch
        pressScale
        className="rounded-full"
      >
        <button
          type="button"
          className={cn(
            buttonVariants({ variant: "outline", size: "lg" }),
            "rounded-full",
          )}
        >
          Hover me
        </button>
      </BorderBeam>
      <BorderBeam revealOn="press" pressScale className="rounded-full">
        <button
          type="button"
          className={cn(
            buttonVariants({ variant: "outline", size: "lg" }),
            "rounded-full",
          )}
        >
          Press me
        </button>
      </BorderBeam>
    </div>
  );
}

More by appica-dev

View all
  • Text Animate

    Text Animate

    21
  • Carousel

    Carousel

    19
  • Avatar

    Avatar

    16
  • Sparkline

    Sparkline

    8
  • Table of Contents

    Table of Contents

    7
  • Background Pattern

    Background Pattern

    7
  • Color Area

    Color Area

    6
  • Autocomplete

    Autocomplete

    2

More in Buttons

View all
  • Button

    Button

    9
  • Texture Button

    Texture Button

    101
  • Button

    Button

    1
  • App Store Button

    App Store Button

    472
  • Native Button

    Native Button

    12
  • Eclipse Button

    Eclipse Button

    3
  • Figma File Button

    Figma File Button

    35
  • Button Group

    Button Group

    3