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";
import { Button } from "@/components/ui/button";
import { Sparkles } from "lucide-react";
export default function BorderBeamButton() {
return (
<Button variant="outline" size="lg" className="rounded-full">
<Sparkles /> Generate summary
<BorderBeam size={48} duration={4} />
</Button>
);
}













