- Location:
sabo/src/components/ui/shine-border.tsx
When to use
- Highlight a card or CTA with a minimal, tasteful shimmer.
- Prefer for gentle emphasis; use Border Beam for a more pronounced sweep.
Usage
sabo/src/components/ui/shine-border.tsx
Key props
number
default:"1"
Width of the border in pixels.
number
default:"14"
Animation duration in seconds for one shimmer cycle.
string | string[]
default:"'#000000'"
Color(s) for the shimmer effect. Can be a single color or array of colors for gradient.
string
Additional CSS classes applied to the div element.
React.CSSProperties
Inline styles applied to the div element.
Styling tip
- Works best on white/solid surfaces with rounded corners (
rounded-xl). - Keep animation speed moderate to avoid distraction.