Search

Search components and flows across the catalog

ThatDesignUIOriginalInteractive preview

Liquid fill button

An outlined button that fills with colour from the bottom on hover or focus, the surface of the fill a moving wave, the label turning white.

Category
Buttons
Platform
Responsive

Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state

Use this component

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/liquid-fill-button.json

2. Use it

Every prop is optional
app/page.tsx
import LiquidFillButton from "@/components/liquid-fill-button";

export default function Page() {
  return <LiquidFillButton />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. A 56px white button with a 2px teal (#0f766e) border, rounded 16px, teal 15px semibold text, on a pale mint panel.
  2. On hover or keyboard focus a teal fill rises from the bottom over 0.7 seconds; its top edge is an SVG wave that scrolls sideways.
  3. The label turns white as the fill passes it and sits above the fill.

How it behaves

  • Hover and keyboard focus both fill the button.
  • The label stays readable at every point of the fill.
  • Under reduced motion the fill appears without the wave or the rise.
  • Disabled stays outlined grey and never fills.

More from ThatDesignUI

Image gallery lightbox

Image gallery lightbox

ThatDesignUIOriginalMedia component

Notification center

Notification center

ThatDesignUIOriginalNotifications component

Interactive chart card

Interactive chart card

ThatDesignUIOriginalDashboard component

Multi-select combobox

Multi-select combobox

ThatDesignUIOriginalForms component