Shine Border

Motion

A React card border made of a conic gradient that sweeps around the edge, masked to the border ring so content stays untouched, with colors, duration and width props.

src/registry/premium/shine-border.tsx/r/shine-border.json

Installation#

bash
npx shadcn@latest add @minidev/shine-border

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/shine-border.json

Usage#

tsx
import { ShineBorder } from "@/components/ui/shine-border"

export function Example() {
  return <ShineBorder />
}

API reference#

ShineBorder props
PropTypeDefault
childrenReact.ReactNode-
colorsstring[]["var(--accent)", "var(--accent-2)", ...
durationnumber8
borderWidthnumber2
radiusnumber18
classNamestring-

Dependencies#

npm

lucide-reactmotion

Built from

All Animated React components