Shimmer Button
A refined specular border-shimmer button with smooth rotating edge highlight, crisp dark/light surfaces, and reduced-motion support.
Features
- Specular conic-gradient border sweep with configurable
shimmerDuration. - Two surface variants (
"default"and"subtle") with crisp dark and light mode contrast. - Full native
<button>props forwarding viaReact.forwardRef, tactile press feedback, andmotion-reduce:animate-none.
Use cases
- Primary hero call-to-action buttons and waitlist triggers.
- Subtle spotlight actions in cards, dialogs, and pricing tiers.
Installation
pnpm dlx shadcn@latest add @abushaidislam/shimmer-button
Usage
import { ShimmerButton } from "@/components/shimmer-button"<ShimmerButton shimmerDuration={3} variant="default">
Launch Component Studio
</ShimmerButton>API reference
ShimmerButton
License and usage
- Free to use and modify in both personal and commercial projects.
- Attribution is appreciated but not required.
- Released under the MIT License.
Every component here is built and maintained by one person. If you enjoy using them, you can sponsor my work.