A pill button that squashes when you press it and, as you let go, flicks a little crown of droplets from right where you pressed, then swallows them back up.
akagoo button·liquid button
Run this in any project set up for the shadcn CLI. It copies the Droplet Button source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/droplet-button.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { DropletButton } from "@/components/droplet-button";
export default function Page() {
return <DropletButton />;
}A free React component in the Liquid collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Droplet Button source. Everything is optional unless it says required. It also accepts useRender.ComponentProps<"button">, VariantProps<typeof dropletButtonVariants>.
| Prop | Type | Default |
|---|---|---|
| loading | boolean | false |
| splash | boolean | true |