# Viscosity Menu (Pro)

> A dot that pours into a menu panel like a drop of liquid.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Components › Navigation |
| Live preview | https://uibrik.com/components/viscosity-menu |
| Writes | 1 file into `components/uibrik/viscosity-menu/` |
| Packages | `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 18, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/viscosity-menu
```

No license yet? Tell the user Viscosity Menu is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=viscosity-menu#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { ViscosityMenu } from "@/components/uibrik/viscosity-menu/viscosity-menu";

<ViscosityMenu
  speed={1}
  gooBlur={8}
  gooContrast={28}
  leadMoveStiffness={420}
  leadMoveDamping={36}
  leadSizeStiffness={280}
  leadSizeDamping={28}
  trailMoveStiffness={260}
  trailMoveDamping={30}
  trailSizeStiffness={200}
  trailSizeDamping={26}
  stretchLead={0.22}
  stretchTrail={0.18}
  stretchMax={0.2}
  clipText
  squish={0.4}
  sway={0}
  textDelay={0.2}
  textDuration={0.3}
  textBlur={6}
  textScale={0.85}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/viscosity-menu.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `speed` | `number` | `1` | Playback rate of the whole liquid animation; 1 is real time. |
| `gooBlur` | `number` | `8` | How far the two blobs blur into each other before thresholding. Higher melts them together over a longer neck. |
| `gooContrast` | `number` | `28` | Sharpness of the liquid edge after the blur. Lower is softer and more see-through at the rim. |
| `leadMoveStiffness` | `number` | `420` | How hard the leading blob is pulled toward its target position. |
| `leadMoveDamping` | `number` | `36` | Friction on the leading blob's movement. Lower overshoots and wobbles. |
| `leadSizeStiffness` | `number` | `280` | How quickly the leading blob grows from the dot into the panel (and shrinks back). |
| `leadSizeDamping` | `number` | `28` | Friction on the leading blob's resize. Lower lets the size bounce. |
| `trailMoveStiffness` | `number` | `260` | Pull on the trailing blob. Keep it below the lead so it lags and stretches a neck. |
| `trailMoveDamping` | `number` | `30` | Friction on the trailing blob's movement. |
| `trailSizeStiffness` | `number` | `200` | How quickly the trailing blob changes size. |
| `trailSizeDamping` | `number` | `26` | Friction on the trailing blob's resize. |
| `stretchLead` | `number` | `0.22` | How much the leading blob elongates with its speed, keeping its area. |
| `stretchTrail` | `number` | `0.18` | How much the trailing blob elongates with its speed. |
| `stretchMax` | `number` | `0.2` | Cap on the speed stretch, so a fast move never becomes a thin streak. |
| `clipText` | `boolean` | `true` | Reveal the options only where the liquid has reached, instead of over the whole panel. |
| `squish` | `number` | `0.4` | How narrow the drop gets halfway between the dot and the panel. |
| `sway` | `number` | `0` | Sideways kick when opening or closing, for a swinging pour. 0 drops straight. |
| `textDelay` | `number` | `0.2` | Wait after opening before the options fade in. |
| `textDuration` | `number` | `0.3` | How long the options take to fade in. |
| `textBlur` | `number` | `6` | Blur the options start from as they fade in. |
| `textScale` | `number` | `0.85` | Scale the options start from as they fade in. |

## Where it fits

- **Creative navigation**: A dot pouring into a menu panel gives a portfolio a liquid feel. Pairs with [Ferrofluid Menu](https://uibrik.com/components/ferrofluid-menu.md) (Pro).
- **Floating menus**: A small dot that expands keeps the page clean.
- **Mobile menus**: Liquid motion makes opening a menu playful. Pairs with [Hamburger Sheet](https://uibrik.com/components/hamburger-sheet.md).

## Same shelf: Navigation

- [Collapsing Breadcrumb](https://uibrik.com/components/collapsing-breadcrumb.md): A breadcrumb that folds its middle crumbs into an ellipsis when space runs out and unfolds them in place on hover or tap, each crumb sliding open to its own width.
- [Fold Toolbar](https://uibrik.com/components/fold-toolbar.md): An icon button that unfolds into a tray of tools, pushing its neighbours aside, and folds back into whichever tool you pick.
- [Hamburger Sheet](https://uibrik.com/components/hamburger-sheet.md): A menu button that grows into its own sheet: the shape unfolds from the button's corner while the three lines cross into the close mark.
- [Large Title Header](https://uibrik.com/components/large-title-header.md): A large page title that rides up with the content and docks into the top bar as you scroll, moving and scaling as one piece, with the bar filling in behind it.
- [On This Page](https://uibrik.com/components/on-this-page.md): A section outline where a dot rides a rail with your scroll, subsections fold open as you reach them, and clicking jumps to a section.
- [Page Indicator](https://uibrik.com/components/page-indicator.md): Pagination dashes you can click, scrub, step with arrows or type into.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/viscosity-menu/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
