vamsiy78

Glow Border

Buttons

About

A wrapper that draws a rotating conic-gradient ring with a soft outer glow around any content, for highlighting a featured pricing plan, a CTA button or an AI entry point.

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

Code

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

Usage.tsx

import GlowBorder from "@/components/ui/glow-border";
import { ArrowRight, Sparkles } from "lucide-react";

export default function GlowBorderButton() {
  return (
    <div className="flex flex-wrap items-center justify-center gap-4">
      <GlowBorder
        radius={999}
        width={1.5}
        duration={3}
        arc={1}
        glow={0.7}
        className="inline-flex"
        contentClassName="bg-background"
      >
        <button
          type="button"
          className="inline-flex h-11 items-center gap-2 rounded-full px-6 text-sm font-medium outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"
        >
          <Sparkles className="size-4 text-chart-4" aria-hidden="true" />
          Ask the assistant
        </button>
      </GlowBorder>
      <GlowBorder
        radius={10}
        width={1}
        duration={4}
        arc={0.35}
        glow={0.4}
        className="inline-flex"
        contentClassName="bg-primary text-primary-foreground"
      >
        <a
          href="#"
          className="inline-flex h-9 items-center gap-1.5 rounded-[9px] px-4 text-sm font-medium outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"
        >
          Start free trial
          <ArrowRight className="size-4 rtl:rotate-180" aria-hidden="true" />
        </a>
      </GlowBorder>
    </div>
  );
}

Dependencies

More by vamsiy78

View all
  • Animated Beam

    Animated Beam

    24
  • Segmented Control

    Segmented Control

    9
  • Agent Roster

    Agent Roster

    8
  • FAQ Accordion Section

    FAQ Accordion Section

    3
  • Table Of Contents

    Table Of Contents

    1
  • API Key Field

    API Key Field

    1
  • Feel Script

    Feel Script

  • Cover Art

    Cover Art

More in Buttons

View all
  • Button

    Button

    154
  • Texture Button

    Texture Button

    115
  • HeroUI Toggle Button

    HeroUI Toggle Button

    4
  • Button

    Button

    16
  • Eclipse Button

    Eclipse Button

    47
  • Button

    Button

    20
  • Base Button

    Base Button

    2
  • Hero Button

    Hero Button

    25