BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Animate UI/components-buttons-ripple

Ripple Button

animate-ui/components-buttons-ripple
FreeComponent

A button that animates on tap with a ripple effect.

Install it

npx shadcn@latest add https://animate-ui.com/r/components-buttons-ripple.json

Source

registry/components/buttons/ripple/index.tsxanimate-ui.com/r/components-buttons-ripple.json
1'use client';
2
3import * as React from 'react';
4import { type VariantProps } from 'class-variance-authority';
5
6import { buttonVariants } from '@/components/animate-ui/components/buttons/button';
7import {
8 RippleButton as RippleButtonPrimitive,
9 RippleButtonRipples as RippleButtonRipplesPrimitive,
10 type RippleButtonProps as RippleButtonPrimitiveProps,
11 type RippleButtonRipplesProps as RippleButtonRipplesPrimitiveProps,
12} from '@/components/animate-ui/primitives/buttons/ripple';
13import { cn } from '@/lib/utils';
14
15const rippleButtonVariants = {
16 default: '[--ripple-button-ripple-color:var(--primary-foreground)]',
17 accent: '[--ripple-button-ripple-color:var(--accent-foreground)]',
18 destructive: '[--ripple-button-ripple-color:var(--destructive-foreground)]',
19 outline: '[--ripple-button-ripple-color:var(--foreground)]',
20 secondary: '[--ripple-button-ripple-color:var(--secondary-foreground)]',
21 ghost: '[--ripple-button-ripple-color:var(--foreground)]',
22 link: '[--ripple-button-ripple-color:var(--primary-foreground)]',
23};
24
25type RippleButtonProps = RippleButtonPrimitiveProps &
26 VariantProps<typeof buttonVariants>;
27
28function RippleButton({
29 className,
30 variant,
31 size,
32 ...props
33}: RippleButtonProps) {
34 return (
35 <RippleButtonPrimitive
36 className={cn(
37 buttonVariants({ variant, size, className }),
38 rippleButtonVariants[variant as keyof typeof rippleButtonVariants],
39 )}
40 {...props}
41 />
42 );
43}
44
45type RippleButtonRipplesProps = RippleButtonRipplesPrimitiveProps;
46
47function RippleButtonRipples(props: RippleButtonRipplesProps) {
48 return <RippleButtonRipplesPrimitive {...props} />;
49}
50
51export {
52 RippleButton,
53 RippleButtonRipples,
54 type RippleButtonProps,
55 type RippleButtonRipplesProps,
56};

What it pulls in

npm packages

  • class-variance-authority

Other registry items

  • @animate-ui/components-buttons-button
  • @animate-ui/primitives-buttons-ripple

Files it writes

  • registry/components/buttons/ripple/index.tsx

Facts

Registry
Animate UI
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-04
Last confirmed
today

Go to the source

animate-ui.com imskyleen/animate-ui on GitHub Raw registry item This item as JSON

More from Animate UI

All 580 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Avatar Groupcomponents-animate-avatar-groupAnimate UIComponentsFree1 dep
Codecomponents-animate-codeAnimate UIComponentsFree1 dep
Code Tabscomponents-animate-code-tabsAnimate UIComponentsFree1 dep
Cursorcomponents-animate-cursorAnimate UIComponentsFreeno deps
GitHub Stars Wheelcomponents-animate-github-stars-wheelAnimate UIComponentsFree1 dep
Tabscomponents-animate-tabsAnimate UIComponentsFreeno deps
Tooltipcomponents-animate-tooltipAnimate UIComponentsFree1 dep
Bubble Backgroundcomponents-backgrounds-bubbleAnimate UIComponentsFree1 dep
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