pulsating-button
componentry/pulsating-buttonFreeComponent
A button with a pulsating glow effect.
Live preview
live · rendered by the registry
Rendered by componentry on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://componentry.dev/r/pulsating-button.jsonSource
1"use client"23import React from "react"45import { cn } from "@/lib/utils"67interface PulsatingButtonProps8 extends React.ButtonHTMLAttributes<HTMLButtonElement> {9 pulseColor?: string10 duration?: string11}1213const PulsatingButton = React.forwardRef<14 HTMLButtonElement,15 PulsatingButtonProps16>(17 (18 {19 className,20 children,21 pulseColor = "#0096ff",22 duration = "1.5s",23 ...props24 },25 ref,26 ) => {27 return (28 <button29 ref={ref}30 className={cn(31 "relative flex cursor-pointer items-center justify-center rounded-full bg-blue-500 px-4 py-2 text-center text-white dark:bg-blue-500 dark:text-black",32 className,33 )}34 style={35 {36 "--pulse-color": pulseColor,37 "--duration": duration,38 } as React.CSSProperties39 }40 {...props}41 >42 <div className="relative z-10">{children}</div>43 <div className="absolute left-1/2 top-1/2 size-full -translate-x-1/2 -translate-y-1/2 animate-pulse rounded-lg bg-inherit opacity-40" />44 </button>45 )46 },47)4849PulsatingButton.displayName = "PulsatingButton"5051export { PulsatingButton }
More from componentry
All 59 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Animated Gradientanimated-gradient | componentry | Components | Free | no deps | |
| ASCII Effectascii-effect | componentry | Components | Free | no deps | |
| Aurora Flowaurora-flow | componentry | Components | Free | no deps | |
| auth-modalauth-modal | componentry | Components | Free | no deps | |
| border-beamborder-beam | componentry | Components | Free | no deps | |
| circuit-boardcircuit-board | componentry | Components | Free | no deps | |
| closing-plasmaclosing-plasma | componentry | Components | Free | no deps | |
| collection-surfercollection-surfer | componentry | Components | Free | no deps |
