- 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
Width of the border in pixels.
Animation duration in seconds for one shimmer cycle.
Color(s) for the shimmer effect. Can be a single color or array of colors for gradient.
Additional CSS classes applied to the div element.
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.