Skip to content

ModalProps

Defined in: packages/engine/src/components/Modal.tsx:10

  • PropsWithChildren
Property Type Default value Description
children? ReactNode undefined -
onClose? () => void undefined Escape and a click on the backdrop. Left out, the modal closes only from inside.
open boolean undefined Whether it is on the stack.
pause? boolean false Holds the world still while it is open: the loop steps nothing and the day clock stops. Off unless asked, as a Roblox menu leaves the world running: a game with anyone else in it cannot stop for one player’s dialog.
title string undefined The heading, and the dialog’s name for a screen reader.