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.json2. Use it
Every prop is optionalapp/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
- A 56px white button with a 2px teal (#0f766e) border, rounded 16px, teal 15px semibold text, on a pale mint panel.
- 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.
- 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.



