About
A soft sheen that drifts along a border to give a card quiet emphasis.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Shine Border to your project and fits it to your theme.
Code
How Shine Border is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { ShineBorder } from "@/components/ui/honest-shine-border";
export default function ShineBorderColors() {
return (
<div className="grid w-full max-w-xl gap-4 sm:grid-cols-2">
<div className="relative rounded-xl border border-border bg-card p-5">
<p className="text-sm font-medium text-foreground">Early access</p>
<p className="mt-1 text-[13px] leading-5 text-muted-foreground">Three colors on a 2 px border.</p>
<ShineBorder colors={["#f97316", "#ec4899", "#8b5cf6"]} borderWidth={2} />
</div>
<div className="relative rounded-full border border-border bg-card px-6 py-5">
<p className="text-sm font-medium text-foreground">Recommended</p>
<p className="mt-1 text-[13px] leading-5 text-muted-foreground">One color on a faster sweep.</p>
<ShineBorder colors={["#3b82f6"]} duration={6} />
</div>
</div>
);
}








