210
A round action button that squeezes out its actions as droplets: each one stretches away, pinches off into its own button and gets drawn back in when you close it, with labels as tooltips and full keyboard support.
akafloating action button·speed dial·fab
Run this in any project set up for the shadcn CLI. It copies the Liquid FAB source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/liquid-fab.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 { LiquidFab } from "@/components/liquid-fab";
export default function Page() {
return <LiquidFab />;
}A free React motion component in the Liquid collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Liquid FAB source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| actionsrequired | LiquidFabAction[] | — |
| direction | LiquidFabDirection | "up" |
| label | string | "Quick actions" |
| size | number | 56 |
| open | boolean | — |
| defaultOpen | boolean | false |
| onOpenChange | (open: boolean) => void | — |
| className | string | — |