crucıble

Sheen

A shimmer-sweep button. A white-silver light periodically crosses the face and brightens the rim, settling through a subtle neutral afterglow back to matte. Pure CSS, zero dependencies.

cssfree

Installation

CLI

npx shadcn@latest add @crucible/sheen

Props

PropTypeDefaultDescription
colorstringwhitePeak color of the light pass, at its brightest. Any CSS color.
afterglowColorstringneutral-400Color the rim decays through as the pass lingers and fades.
intervalnumberSeconds between the start of each pass.
radiusnumberBorder radius in px.
pausedbooleanFreeze the animation, holding the current frame.
Also accepts all props of React.ComponentPropsWithoutRef<"button">they pass through to the underlying element.

Honors prefers-reduced-motion with a designed static fallback, and passes className through.