Gooey Menu

A gooey dropdown menu whose trigger and panel melt together with an SVG goo filter. Spring-animated open/close, keyboard navigation, links or buttons, separators, danger items, and full color/radius control.

GUI Components

A menu that melts into place

Hover or click the trigger — the goo filter fuses it with the panel.

Default
Centered
Sky theme · no goo

Installation

  1. 1

    Install the component:

    npx shadcn@latest add https://ui.amines.fun/registry/gooey-menu.json
  2. 2

    Usage:

    jsx

    app/page.jsx

    <GooeyMenu  label="Account"  items={[    { label: "Profile", shortcut: "⌘P" },    { label: "Settings", href: "/settings" },    { type: "separator" },    { label: "Delete", danger: true },  ]}/>

Props

PropTypeDefaultDescriptionRequired
itemsGooeyMenuItem[][]Menu entries: {id,label,icon,shortcut,href,target,rel,onClick,danger,disabled} or {type:'separator'}.No
labelstring"Menu"Trigger text.No
iconReactNodeuser iconTrigger icon.No
showChevronbooleantrueShow the rotating chevron on the trigger.No
triggerReactNode | (({open}) => ReactNode)undefinedCustom trigger content replacing the default label+icon.No
triggerLabelstringundefinedaria-label for the trigger button.No
openbooleanundefinedControlled open state.No
defaultOpenbooleanfalseInitial state when uncontrolled.No
onOpenChange(open: boolean) => voidundefinedCalled when open state changes.No
onSelect(item, event) => voidundefinedCalled when an item is chosen.No
closeOnSelectbooleantrueClose the panel after selecting an item.No
closeOnOutsideClickbooleantrueClose when clicking outside.No
closeOnEscapebooleantrueClose on Escape key.No
align"start" | "center" | "end""start"Panel alignment under the trigger.No
gapnumber12Space between trigger and panel in px.No
menuWidthnumber | "trigger"224Panel width in px, or 'trigger' to match the trigger.No
maxMenuHeightnumberundefinedPanel scrolls past this height.No
triggerRadiusnumber | "full""12"Trigger corner radius in px.No
menuRadiusnumber20Panel corner radius in px.No
menuPaddingnumber8Space between panel edge and items.No
itemRadiusnumber | "auto""auto"Item corner radius; auto = menuRadius - menuPadding (concentric corners).No
triggerPaddingnumber | string"10px 16px"CSS padding of the trigger.No
itemPaddingnumber | string"10px 12px"CSS padding of each item.No
borderWidthnumber1Outline width in px (0 = none).No
shadowstring | false"0 12px 28px rgba(0,0,0,0.35)"CSS box-shadow, or false for none.No
blurnumber8Goo amount. 0 turns the goo effect off.No
spring{stiffness?, damping?, mass?}{stiffness:320, damping:24, mass:1}Override the default spring.No
colorsPartial<GooeyMenuColors>GOOEY_MENU_DEFAULT_COLORSTheme colors: fill, border, text, mutedText, hover, danger, dangerHover, focus.No
zIndexnumber50z-index of the menu panel.No
linkComponentstring | ElementType"a"Element used for items with href, e.g. next/link.No
className / triggerClassName / menuClassName / itemClassNamestring""Extra classes for the wrapper, trigger, panel, and items.No