Skip to main content
window:Popup(props) floats a modal card over a dimmed backdrop. Give it options for a choice dialog, or boxes for a changelog. It returns a handle with Close().
A confirmation popup over a dimmed backdrop

A choice dialog

A changelog

Properties

title
string
default:"\"Popup\""
The heading.
subtitle
string
A smaller line beneath the title.
icon
string | number
An icon beside the title.
content
string
A body paragraph. Wraps, and scrolls inside the card when long.
boxes
{ box }
A list of cards, shown instead of a paragraph. Each box takes title, and optional description and icon.
options
{ option }
default:"one dismiss button"
Footer buttons. Each option takes text, an optional style ("neutral", "primary", or "danger"), and an optional callback that runs before the popup closes.
dismissable
boolean
default:"true"
Let the player click the backdrop or press Escape to close.