Mehi

Border Beam Panel

Cards 929

About

A card with a light beam that travels its border — conic-gradient trace, configurable speed, colour and dwell.

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

Code

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

Usage.tsx

"use client";

import { BorderBeamPanel } from "@/components/ui/border-beam-panel";

export default function BorderBeamPanelDemo() {
  return (
    <div className="flex w-full items-center justify-center p-10">
      <BorderBeamPanel className="w-full max-w-md" beams={2} thickness={2} radius={18} glow>
        <div className="flex flex-col gap-4 p-7">
          <span className="w-fit rounded-full border border-[var(--motiq-border)] px-2.5 py-0.5 text-[10px] font-medium uppercase tracking-[0.16em] text-[var(--motiq-muted)]">
            Pro
          </span>
          <h3 className="text-2xl font-semibold tracking-tight text-[var(--motiq-fg)]">
            Border Beam Panel
          </h3>
          <p className="text-sm text-[var(--motiq-fg-secondary)]">
            A light that travels the border on a conic gradient — it speeds up on
            hover and eases back when you leave.
          </p>
          <button
            type="button"
            className="mt-1 w-fit rounded-lg bg-[var(--motiq-accent)] px-4 py-2 text-sm font-medium text-white"
          >
            Get started
          </button>
        </div>
      </BorderBeamPanel>
    </div>
  );
}

Dependencies

More by Mehi

View all
  • Compare Reveal

    Compare Reveal

    304
  • Decrypt Text

    Decrypt Text

    240
  • Holo Card

    Holo Card

    220
  • Magnetic Dock

    Magnetic Dock

    157
  • Luminous Topography

    Luminous Topography

    106
  • Lens Card

    Lens Card

    83
  • Copperplate Hatch

    Copperplate Hatch

    59
  • Animated Grid

    Animated Grid

    49

More in Cards

View all
  • Statistics Card 2

    Statistics Card 2

    264
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Stats cards with links

    Stats cards with links

    39
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    292
  • Item

    Item

    10