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
  • Segmented Control

    Segmented Control

    8
  • Animated Beam

    Animated Beam

    7
  • Agent Roster

    Agent Roster

    5
  • Table Of Contents

    Table Of Contents

    1
  • API Key Field

    API Key Field

    1
  • Toast Stack

    Toast Stack

  • Team Portrait Grid

    Team Portrait Grid

  • Image Cropper

    Image Cropper

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198