honestui

Shine Border

Component

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>
  );
}

More by honestui

View all
  • Chromatic Text Reveal

    Chromatic Text Reveal

    31
  • Warp

    Warp

    1
  • Morphing Dialog

    Morphing Dialog

    1
  • Scroll Velocity Text

    Scroll Velocity Text

    1
  • Spotlight

    Spotlight

    1
  • Typewriter

    Typewriter

    1
  • Schedule Builder

    Schedule Builder

  • Audit Log

    Audit Log