Gooey menu

Pro

A floating action button whose actions bud off like liquid and merge back in.

Live · keyboard ready

Today

  • Review launch checklist9:40
  • Standup notes9:05
  • A floating create button on a mobile or canvas screen with a few actions.
  • A map or media view that needs quick actions without a toolbar.
  • A playful product where the menu itself is part of the brand.
  • Use dropdown-menu for more than five actions or actions with descriptions.
  • Use a plain button when there is only one primary action.
  • Use orbit-menu for a press and drag radial picker.

Installation

Pro source and install commands unlock with a Pro plan.

example.tsx
import { GooeyMenu } from "@/components/arc/gooey-menu/gooey-menu";import { Camera, FileText, Mic } from "lucide-react"; export function CreateButton() {  return (    <div style={{ position: "fixed", right: 24, bottom: 24 }}>      <GooeyMenu        items={[          { label: "Note", icon: <FileText />, onSelect: () => createNote() },          { label: "Photo", icon: <Camera />, onSelect: () => openCamera() },          { label: "Voice memo", icon: <Mic />, onSelect: () => record() },        ]}      />    </div>  );}

GooeyMenu

A floating action button whose actions bud off it like drops of liquid, pinch off, and merge back in on close. Labels fade in beside the bubbles.

PropTypeDefaultDescription
itemsRequiredGooeyMenuItem[]–Actions with label, icon, onSelect, and optional disabled. The first sits nearest the button.
openboolean–Controlled open state.
defaultOpenbooleanfalseInitial open state when uncontrolled.
onOpenChange(open: boolean) => void–Called when the menu opens or closes.
direction"up" | "down" | "left" | "right""up"Where the bubbles travel.
labelSide"start" | "end""start"Side of the labels when bubbles travel up or down. Horizontal menus show a label above the hovered or focused bubble.
labelstring"Create"Accessible name of the trigger and the menu.
iconReactNode–Trigger icon. Turns 45 degrees when open, so a plus becomes a close mark. Defaults to a plus.
sizenumber56Trigger diameter in px. Items are 80% of it.
gapnumber14Space between bubbles in px.
classNamestring–Class on the root, which is exactly the trigger. Position it here.
styleCSSProperties–Inline style on the root.
EnterorSpace
Opens or closes the menu. Opening with the keyboard focuses the first action.
ArrowUporArrowDown on the trigger
Opens the menu and focuses the first action.
Arrow keys
Moves between actions, wrapping at the ends.
HomeorEnd
Focuses the first or last action.
Escape
Closes the menu and returns focus to the trigger.
Tab
Closes the menu and moves on.
  • The trigger has aria-haspopup="menu", aria-expanded, and aria-controls; actions are role="menuitem" in a labelled role="menu".
  • Closed actions are inert, so they cannot be focused or clicked while hidden inside the button.
  • Each action's visible label is its accessible name; icons are aria-hidden.
  • Clicking outside closes the menu.
  • Bubbles are plain circles merged by an SVG blur and alpha threshold filter, so they stretch out of the button, neck, and pinch off; icons live in a crisp layer above.
  • Opening uses a spring with bounce 0.32 and a 40ms stagger; closing uses a critically damped spring in reverse order so they merge as one pull.
  • Hovered bubbles swell 12% and pressed ones dip, and the liquid bulges toward neighbours as they do.
  • The trigger icon turns 45 degrees on a spring.
  • Reduced motion drops the filter and travel; actions fade in and out in place.
  • The root is only the trigger, so it fits any corner; plan room for bubbles in the chosen direction.
  • Labels sit beside vertical menus and need about 120px on that side.
  • Taps respond on press with a dip; touch targets are at least 44px at the default size.
  • The SVG filter only repaints while bubbles move; at rest it is static.
  • Bubble positions animate on transform through Motion.
  • The filter region is sized to the reach of the menu so it never clips or grows larger than needed.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Choose it for three to five quick create actions on a mobile screen, a canvas, or a map.
  • Put the most common action first; it sits nearest the button.
  • Position the root with fixed or absolute positioning; bubbles and labels overflow it on purpose, so do not clip the parent too tightly.
  • The liquid is the accent (--accent with --accent-foreground icons), so it follows the accent setting. Set --goo-color and --goo-ink on the root to change the liquid and icon colors.
  • Use direction="left" or "right" for toolbars along an edge.

The full library index for assistants is at /llms.txt.