Measured entry
magicui-shine-border
hover-effectgradient-glowmotion on file
A client-side React overlay that paints an animated radial-gradient border around a positioned parent. It ships as a shadcn registry component, uses utility classes plus registry-supplied animation CSS, and imports the local cn helper through the standard shadcn path alias.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 29.5 KB (95.0 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 1.64s error during build: [vite:load-fallback] Could not load <sandbox>re-8f0b32e2f3d1/src/lib/utils (imported by src/cut/shine-border.tsx): ENOENT: no such file or directory, open '<sandbox>re-8f0b32e2f3d1/src/lib/utils'
Verdict
A focused effect with a clean API that built, mounted, and stayed clear of the tested accessibility and overflow issues. It needs a shadcn-style setup because the bare project cannot resolve its local utility import, so adoption is easiest in an existing shadcn codebase.
Use it if
- You want a decorative animated outline on cards, calls to action, or featured panels.
- Your React app already has shadcn-style aliases, a cn helper, and Tailwind utilities.
- You need configurable border color and animation timing without adding a runtime package.
Skip it if
- Your design system avoids continuous decorative motion or requires the effect to be static.
- You need a self-contained component that works without project CSS or path aliases.
- Your target browsers cannot reliably render composite CSS masks.
- You need the border itself to accept pointer interaction.
Install
| Declared dependencies | clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, add or replace the cn helper import, configure the matching path alias, provide the shine keyframes and animation utility, and translate the Tailwind layout and masking classes if Tailwind is unavailable. Place it inside a positioned container with the desired inherited corner radius.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/magicuidesign/magicuiAlternatives
Other published entries for the hover-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- eldora-card-flip-hover3d
- Renders
- YES
- A11y
- 0
- Gzip
- 17.5KB
- Bare
- pass
- Prov
- NO
- uilayouts-btn-hover-left-flip3d
- Renders
- YES
- A11y
- 0
- Gzip
- 17.5KB
- Bare
- pass
- Prov
- NO
- uilayouts-btn-hover-down3d
- Renders
- YES
- A11y
- 0
- Gzip
- 17.6KB
- Bare
- pass
- Prov
- NO
- uilayouts-btn-hover-multiplegradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- magicui-cool-modespatial
- Renders
- YES
- A11y
- 0
- Gzip
- 21.8KB
- Bare
- pass
- Prov
- NO
- uilayouts-hovercard2gradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 24.0KB
- Bare
- pass
- Prov
- NO