Shiny Button

A band of light sweeps across the button, like sun glinting off wet glass.

no dependenciesMIT · free

Installation

npx shadcn@latest add https://ombakui.com/r/shiny-button.json

Usage

import { ShinyButton } from "@/components/shiny-button";

<ShinyButton>Get started</ShinyButton>
<ShinyButton trigger="hover">Shine on hover</ShinyButton>

Props

PropTypeDefaultDescription
childrenReactNode–Button content.
trigger"loop" | "hover""loop""loop" shines every few seconds; "hover" shines when hovered.
intervalnumber3Seconds between shines in loop mode.
classNamestring–