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 { buttonVariants } from "@/components/ui/button";
import { Check } from "lucide-react";
const plans = [
{
name: "Starter",
price: "$0",
note: "For side projects",
features: ["3 projects", "Community support", "7-day logs"],
},
{
name: "Pro",
price: "$24",
note: "For teams shipping weekly",
features: [
"Unlimited projects",
"Branch previews",
"90-day logs",
"Priority support",
],
featured: true,
},
];
function Plan({ plan }: { plan: (typeof plans)[number] }) {
return (
<div className="flex h-full flex-col p-6">
<div className="flex items-center justify-between">
<p className="text-sm font-medium">{plan.name}</p>
{plan.featured && (
<span className="rounded-full bg-[linear-gradient(90deg,var(--chart-1),var(--chart-4))] px-2.5 py-0.5 text-[11px] font-medium text-white">
Most popular
</span>
)}
</div>
<p className="mt-3 flex items-baseline gap-1">
<span className="text-4xl font-semibold tracking-tight tabular-nums">
{plan.price}
</span>
<span className="text-sm text-muted-foreground">/ month</span>
</p>
<p className="mt-1 text-sm text-muted-foreground">{plan.note}</p>
<ul className="mt-5 flex-1 space-y-2.5 text-sm">
{plan.features.map((f) => (
<li key={f} className="flex items-center gap-2">
<Check
className={`size-4 ${plan.featured ? "text-chart-1" : "text-muted-foreground"}`}
aria-hidden="true"
/>
{f}
</li>
))}
</ul>
<a
href="#"
className={buttonVariants({
variant: plan.featured ? "default" : "outline",
className: "mt-6 w-full",
})}
>
{plan.featured ? "Upgrade to Pro" : "Get started"}
</a>
</div>
);
}
export default function GlowBorderDemo() {
return (
<div className="grid w-full max-w-2xl gap-5 sm:grid-cols-2">
<div className="rounded-[14px] border bg-card sm:my-4">
<Plan plan={plans[0]} />
</div>
<GlowBorder duration={5} width={1.5} radius={14}>
<Plan plan={plans[1]} />
</GlowBorder>
</div>
);
}
















