Ripple
Rings that pulse out from the middle, to put behind something.
Add it to your project
With the Magic UI commandTerminal
npx shadcn@latest add @magicui/ripple
First time with Magic UI? Set it up once.
The code
import React, { type ComponentPropsWithoutRef, type CSSProperties } from "react"
import { cn } from "@/lib/utils"
interface RippleProps extends ComponentPropsWithoutRef<"div"> {
mainCircleSize?: number
mainCircleOpacity?: number
numCircles?: number
}
export const Ripple = React.memo(function Ripple({
mainCircleSize = 210,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.