Loading preview
Glow Border Button
ButtonsA button with a light that keeps circling its border.
A button that sends a ripple out from where it was pressed.
npx shadcn@latest add @venusui/ripple-buttonRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/ripple-button.tsxThe code behind the preview above.
ripple-button-demo.tsx
import { RippleButton } from "@/components/ui/ripple-button"
export default function RippleButtonDemo() {
return <RippleButton>Click anywhere on me</RippleButton>
}
| Prop | Type | Default | Description |
|---|---|---|---|
| rippleColor | string | text color at 30% | Ripple color. Any CSS color. |
| type | "button" | "submit" | "reset" | "button" | Defaults to button so it never submits a form by accident. |
All <button> props, including onClick, disabled and ref. Your onPointerDown and onKeyDown still run.
ripple keyframes and --animate-ripple to your CSS.cn helper at @/lib/utils.className, e.g. bg-secondary text-secondary-foreground for a quieter button; the ripple follows the text color.--animate-ripple.<button>. Enter and Space ripple from the center.ripple keyframes are in your CSS.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A button with a light that keeps circling its border.
A heart toggle that pops and bursts when liked, with an optional count.
A primary button with a light sweep across its surface.