BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/wise-ui/pulse-button

Pulse Button

wise-ui/pulse-button
FreeComponent

A button with a pulsing glow animation.

Live preview

live · rendered by the registry
Rendered by wise-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://wise-ui.com/r/pulse-button.json

Source

registry/wise-ui/components/pulse-button.tsxwise-ui.com/r/pulse-button.json
1"use client"
2
3import * as React from "react"
4import { motion } from "motion/react"
5import { cn } from "@/registry/wise-ui/lib/utils"
6
7interface PulseButtonProps
8 extends React.ButtonHTMLAttributes<HTMLButtonElement> {
9 /** Pulse ring color */
10 pulseColor?: string
11 /** Seconds per pulse cycle */
12 duration?: number
13 children: React.ReactNode
14}
15
16const PulseButton = React.forwardRef<HTMLButtonElement, PulseButtonProps>(
17 (
18 {
19 pulseColor = "hsl(var(--primary))",
20 duration = 2,
21 children,
22 disabled,
23 className,
24 ...props
25 },
26 ref
27 ) => {
28 return (
29 <div className="relative inline-flex rounded-md">
30 {/* Pulse rings */}
31 {!disabled && (
32 <>
33 <motion.div
34 className="pointer-events-none absolute inset-0 rounded-md"
35 style={{
36 border: `2px solid ${pulseColor}`,
37 }}
38 animate={{ scale: [1, 1.6], opacity: [0.4, 0] }}
39 transition={{
40 duration,
41 repeat: Infinity,
42 ease: "easeOut",
43 }}
44 />
45 <motion.div
46 className="pointer-events-none absolute inset-0 rounded-md"
47 style={{
48 border: `2px solid ${pulseColor}`,
49 }}
50 animate={{ scale: [1, 1.6], opacity: [0.4, 0] }}
51 transition={{
52 duration,
53 delay: duration / 2,
54 repeat: Infinity,
55 ease: "easeOut",
56 }}
57 />
58 </>
59 )}
60
61 <button
62 ref={ref}
63 disabled={disabled}
64 className={cn(
65 "relative inline-flex cursor-pointer items-center gap-2 rounded-md bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",
66 "disabled:cursor-not-allowed disabled:opacity-50",
67 className
68 )}
69 {...props}
70 >
71 {children}
72 </button>
73 </div>
74 )
75 }
76)
77PulseButton.displayName = "PulseButton"
78
79export { PulseButton }
80export type { PulseButtonProps }

What it pulls in

npm packages

  • motion
  • clsx
  • tailwind-merge

Files it writes

  • registry/wise-ui/components/pulse-button.tsx

Facts

Registry
wise-ui
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

Docs on wise-ui wise-ui.com r-pathak/wise-ui on GitHub Raw registry item This item as JSON

More from wise-ui

All 20 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Tabsanimated-tabswise-uiComponentsFree3 deps
Border Beamborder-beamwise-uiComponentsFree3 deps
Data Tabledata-tablewise-uiComponentsFree3 deps
Dockdockwise-uiComponentsFree3 deps
Dot Matrixdot-matrixwise-uiComponentsFree2 deps
Editable Texteditable-textwise-uiComponentsFree4 deps
Gradient Sidebargradient-sidebarwise-uiComponentsFree3 deps
Kanban Boardkanban-boardwise-uiComponentsFree6 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex