GooeyMenu

GooeyMenu is an animated gooey menu component for React Native and React, from the dissolve library. Floating button whose actions pour out as gooey drops.

A floating button whose actions pour out of it as drops along an arc and melt back in when it closes. Place it absolutely: it reserves room for the arc above and to the left of the button.

Install

React Native

Install the engine once per app and wrap the root layout in <DissolveProvider> (see Installation), then copy the component into components/dissolve:

npx expo install dissolve-ui @shopify/react-native-skia react-native-reanimated react-native-worklets react-native-gesture-handler expo-haptics
npx dissolve-ui add gooey-menu --native
npx shadcn@latest add https://dissolve.rselmi.com/r/native/gooey-menu.json

React

Needs React 19 and react-dom, nothing else: no engine, no provider, no Tailwind. Works in the Next.js App Router.

npx dissolve-ui add gooey-menu --web
npx shadcn@latest add https://dissolve.rselmi.com/r/gooey-menu.json

Usage

GooeyMenu.tsx (React Native)
import { GooeyMenu } from '@/components/dissolve/gooey-menu';

<GooeyMenu
  className="absolute bottom-2 right-2"
  items={[
    { icon: <Icon name="camera" />, label: 'Camera', onPress: openCamera },
    { icon: <Icon name="photo" />, label: 'Photo', onPress: openLibrary },
    { icon: <Icon name="mic" />, label: 'Voice', onPress: record },
  ]}
/>
GooeyMenu.tsx (React)
import { GooeyMenu } from '@/components/dissolve/gooey-menu';

<GooeyMenu
  className="absolute bottom-2 right-2"
  items={[
    { icon: <Icon name="camera" />, label: 'Camera', onPress: openCamera },
    { icon: <Icon name="photo" />, label: 'Photo', onPress: openLibrary },
    { icon: <Icon name="mic" />, label: 'Voice', onPress: record },
  ]}
/>

Props

PropTypeDefaultDescription
itemsGooeyMenuItem[]required{ icon, onPress, label? }. The menu closes after an action runs.
sizenumber56Diameter of the main button. Actions are 82 percent of it.
distancenumber92Distance from the main button to the actions.
startAnglenumber-90Arc start in degrees, 0 = right, -90 = up.
endAnglenumber-180Arc end in degrees, -180 = left.
hapticsbooleantrueLight impact on toggle.
classNamestringRoot: position it here. Button and drops read the primary token.
iconClassNamestring'bg-dissolve-primary-foreground'The two bars of the plus, their color.

Source

Previous: SplitButton · Next: SlideToConfirm · All components

dissolve is MIT licensed. Source on GitHub, package on npm. This page as markdown. For AI agents: llms.txt.