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

Window

Window(props): Element | null

A window over the game, such as a bag or a character sheet, several open at once. It opens at its slot, over what stands there, and the player drags it by its title bar to anywhere on the screen; the place is kept on this device per id, and the settings’ Window layout row puts every window back. A press brings it to the front, and Escape closes the front one. On a phone it stands alone in the middle over a dimmed screen, a press beside it closes it, and it fades while something is dragged out of it.

Parameter Type
props WindowProps

Element | null