Pulsing button
A button that sends out a soft pulse to draw the eye.
Add it to your project
With the Magic UI commandTerminal
npx shadcn@latest add @magicui/pulsating-button
First time with Magic UI? Set it up once.
The code
"use client"
import React, { useImperativeHandle, useLayoutEffect, useRef } from "react"
import { cn } from "@/lib/utils"
interface PulsatingButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
pulseColor?: string
duration?: string
distance?: string
variant?: "pulse" | "ripple"
}This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.