Skip to content
Elements / Input

menu-item

inside menu

One action in a menu's list.

Spec · edit me

No problems. The parser accepted every line.

Result · try itOpen in playground
Tweak the props
tone

Props

"text"textWhat it does, e.g. Duplicate.required
onactionWhat happens when it's chosen, e.g. emit:duplicate or set:confirm:true. Separate several with ;required
iconstringAn icon before the text, by name from icon's list, e.g. icon=check-circle.—
tonedefault · badbad for an action that removes or can't be undone, drawn in the bad color.default
disabledconditionWhen true, it's shown but can't be chosen.—
ifconditionShow only when this expression is true, e.g. if=done or if={count>0}. Every element takes it.—
tipstringA short explanation shown on hover, keyboard focus or a tap, e.g. tip="Orders not yet shipped": for a term or a number some people won't know, instead of more words on screen. It makes the element a Tab stop if it isn't one. Every element takes it.—

Only inside: menu

SayShape v0.1 is an early prototype under the MIT License. Status · GitHub