Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

button

button(onPress): PanelButton

A row of a declared panel that runs onPress when pressed, as Leva’s button does, handing it the world’s authority: a tool, not a view, so it may change the world in a game played alone. On a page in a room, which decides nothing, a press throws instead.

Parameter Type
onPress (authority) => void

PanelButton