vamsiy78

Border Beam

Cards

About

A thin animated beam of light that travels around the inside edge of an element's border, used to highlight a featured card or call-to-action button.

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";

export default function BorderBeamDemo() {
  return (
    <div className="relative w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground">
      <div className="flex items-center justify-between">
        <span className="font-mono text-xs text-muted-foreground">
          deploy · main
        </span>
        <span className="inline-flex items-center gap-1.5 text-xs font-medium">
          <span className="size-1.5 rounded-full bg-ring" aria-hidden="true" />
          Building
        </span>
      </div>
      <p className="mt-4 text-base font-semibold tracking-tight">
        Rolling out to 3 regions
      </p>
      <p className="mt-1 text-sm text-muted-foreground">
        Step 2 of 4: running migrations on the primary database.
      </p>
      <BorderBeam />
    </div>
  );
}

Dependencies

More by vamsiy78

View all
  • Animated Beam

    Animated Beam

    53
  • Glow Border

    Glow Border

    16
  • Agent Roster

    Agent Roster

    13
  • Segmented Control

    Segmented Control

    12
  • FAQ Accordion Section

    FAQ Accordion Section

    3
  • API Key Field

    API Key Field

    3
  • Signature Pad

    Signature Pad

    1
  • Table Of Contents

    Table Of Contents

    1

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.4K
  • Stats cards with links

    Stats cards with links

    46
  • Statistics Card 7

    Statistics Card 7

    342
  • Statistics Card 2

    Statistics Card 2

    322
  • Card Studio

    Card Studio

    37
  • Card

    Card

    65
  • Admin Dashboard Cards

    Admin Dashboard Cards

    44
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    778