---
title: "Menu Morph"
description: "A transitions.dev-inspired hamburger and plus-menu morph primitive for compact action menus"
mode: "frame"
---
import { CatalogDetail, CatalogSlot } from "/snippets/catalog-detail.jsx";
import { InstallCommand } from "/snippets/install-command.jsx";
## Paste it into your composition
Open `compositions/components/menu-morph.html` and copy what is inside into your own composition.
The file opens with a comment header that walks you through it.
A component has no size or duration of its own. It takes both from the composition
you paste it into.
## Variables
Every one of these has a default, so the piece works untouched. Set the ones you
want to change on the element:
| Variable | Default | Accepts | What it does |
| --- | --- | --- | --- |
| `actions` | `Text, Image, Audio` | string | Comma separated labels for the pills that fan out under the button. Up to six. |
| `tone` | `ink` | `ink`, `green`, `blue`, `violet` | Colour of the round button behind the white bars. |
| `size` | `68` | 52px to 112px, step 4px | Diameter of the round button in pixels. The bars scale with it. |
Set them with `data-variable-values` on the element that mounts it. These are the
defaults, so this behaves exactly like the preview above until you change one:
```html wrap
```
{/* hf:generated-footer */}
Tagged `video-primitive` `transition-primitive` `transitions-dev-port` `menu` `morph`.
## Related topics
- [Browse the complete Catalog](/catalog)
- [Add assets and Catalog items in the browser editor](/studio/assets-and-blocks)
- [Put blocks together into one video](/concepts/compositions)