item

fun item(label: String, action: () -> Unit)(source)

adds an item labeled label that calls action when it is clicked


fun item(label: String, shortcut: String, action: () -> Unit)(source)

adds an item labeled label with the keyboard shortcut, like mod+s, which a menu bar registers