Liquid Button

A button with a liquid gooey effect on hover.

Installation

pnpm dlx rareui add liquid-button

Usage

1

Import the component

import LiquidButton from '@/components/rareui/LiquidButton';
2

Use in your application

export default function App() { return ( <LiquidButton text="Hover me" /> ); }

Features

Realistic dripping effect using SVG filters and Framer Motion.

Examples

Examples

1

Custom Colors

<LiquidButton text="Click me" backgroundColor="bg-blue-500" textColor="text-white" />
2

Continuous Dripping

<LiquidButton text="Always Dripping" isDripping={true} />

Props

PropTypeDefaultDescription
textstringHover meThe text to display inside the button.
classNamestring-Additional CSS classes for the container.
backgroundColorstringbg-black dark:bg-whiteTailwind class for the background color.
textColorstringtext-white dark:text-blackTailwind class for the text color.
isDrippingbooleanfalseIf true, liquid drops will continuously animate without needing hover.