Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Layer: menu

Vertical column of buttons (title, pause, …).

{
  "type": "menu",
  "layout": { "host": "screen" },
  "buttons": [
    { "label": "New game", "interaction": { "hooks": { "on_click": "new_game" } } },
    { "label": "Quit", "interaction": { "hooks": { "on_click": "quit" } } }
  ]
}

Usually you need

KeyTypeEffect
type"menu"Required
buttonsarrayMenu entries
layout.host"screen" | "panel"Where the column sits

All keys

KeyTypeEffect
type"menu"Required
ordernumberZ
layoutobjecthost, spacing via theme
style / sourcepackButton chrome
buttonsarraySee below
modulate / scale—Layer tint

Button keys

KeyTypeEffect
idstringLocale merge / identity
label / label_keystringCaption
icons / icon fields—Glyphs
interactionobjecthooks.on_click …
state_visualobjectPer-state
show_ifexpressionVisibility
style / sourcepackElement pack

Default chrome: buttons. Actions and hooks.