Measured entry

magicui-rainbow-button

buttongradient-glowmotion on file

A React call-to-action button with an animated rainbow border and glow, plus default and outline variants, size options, and optional child composition. It ships as a shadcn registry item built from Tailwind utilities, theme CSS, class-variance-authority, Radix Slot, and a local class-merging helper.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of magicui-rainbow-button at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-rainbow-button at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-rainbow-button at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for magicui-rainbow-button
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal32.0 KB (97.5 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 701ms
error during build:
[vite]: Rollup failed to resolve import "@radix-ui/react-slot" from "<sandbox>re-9c1bfacd85a6/src/cut/rainbow-button.tsx".

Verdict

A specialized promotional button for teams already invested in the shadcn ecosystem. The packaged build mounts, but the blank captures weaken visual confidence and the supplied colors need contrast work. It needs a shadcn-style setup and is not a drop-in choice for a bare React project.

Use it if

  • You need a visually prominent call to action on a dark or themed landing page.
  • Your app already uses shadcn conventions and can absorb the supplied theme variables and animation.
  • You want variant and size props while retaining native button attributes and ref forwarding.

Skip it if

  • You need a component that renders reliably in an unconfigured React and Tailwind project.
  • Your accessibility bar requires the supplied color pairing to pass contrast checks without adjustment.
  • You need confidence from the visual capture, since the verified viewport screenshots were blank.
  • Your interface avoids continuously animated or attention-heavy controls.

Install

Installation record for magicui-rainbow-button
Declared dependenciesclsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add Radix Slot and class-variance-authority, provide the local class-merging helper with clsx and tailwind-merge, and configure Tailwind to recognize the component utilities. Copy the rainbow color variables, keyframes, animation mapping, and referenced semantic color tokens into your theme.

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.

License
MIT
Record published
2026-08-18

Alternatives

Other published entries for the button pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.