Measured entry

cultui-cosmic-button

hover-effectgradient-glowmotion on file

A client-side React button or anchor with layered conic gradients that rotate around the control and expand on hover. It ships as copied TypeScript source from a shadcn registry, styled with Tailwind utilities, and depends on a project-local cn helper plus custom cosmic spin animation classes.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of cultui-cosmic-button at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of cultui-cosmic-button at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of cultui-cosmic-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 cultui-cosmic-button
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal27.5 KB (92.9 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 37.90s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ui/cosmic-button.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A sound accent control for a focused call to action, with clean configured build, mount, responsive, and accessibility results. It is not standalone: it needs a shadcn-style setup, and teams should add motion preferences and always pass deliberate link or button props.

Use it if

  • You need a prominent call to action on a dark promotional or launch surface.
  • Your app already uses Tailwind and has a shadcn-compatible cn utility.
  • You want one component that can render as either a link or a button.

Skip it if

  • Your design system avoids continuously moving decoration or needs reduced-motion behavior built in.
  • You need a drop-in component for a project without Tailwind or shadcn conventions.
  • You cannot guarantee an explicit href, because the anchor variant otherwise points to the author's external site.
  • You need a form-safe button with an explicit default type already enforced.

Install

Installation record for cultui-cosmic-button
Declared dependenciesnone declared
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 Tailwind with the color and dark-mode tokens used by the classes, provide a cn class-merging helper at the expected alias or change the import, and define both cosmic spin keyframes and their animation utilities in global CSS. Ensure the file is treated as a client component.

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.

Alternatives

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.