Skip to content

Write HTML. Render video. Built for agents.

1.7 KB
Raw Blame
{
  "$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
  "name": "menu-morph",
  "type": "hyperframes:component",
  "title": "Menu Morph",
  "description": "A transitions.dev-inspired hamburger and plus-menu morph primitive for compact action menus",
  "tags": ["video-primitive", "transition-primitive", "transitions-dev-port", "menu", "morph"],
  "files": [
    {
      "path": "menu-morph.html",
      "target": "compositions/components/menu-morph.html",
      "type": "hyperframes:snippet"
    }
  ],
  "variables": [
    {
      "id": "actions",
      "type": "string",
      "role": "content",
      "label": "Actions",
      "description": "Comma separated labels for the pills that fan out under the button. Up to six.",
      "default": "Text, Image, Audio"
    },
    {
      "id": "tone",
      "type": "enum",
      "role": "style",
      "label": "Tone",
      "description": "Colour of the round button behind the white bars.",
      "default": "ink",
      "options": [
        {
          "value": "ink",
          "label": "Ink"
        },
        {
          "value": "green",
          "label": "Green"
        },
        {
          "value": "blue",
          "label": "Blue"
        },
        {
          "value": "violet",
          "label": "Violet"
        }
      ]
    },
    {
      "id": "size",
      "type": "number",
      "role": "layout",
      "label": "Button size",
      "description": "Diameter of the round button in pixels. The bars scale with it.",
      "default": 68,
      "min": 52,
      "max": 112,
      "step": 4,
      "unit": "px"
    }
  ],
  "preview": {
    "poster": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/menu-morph.png"
  }
}