Skip to content

Modal

requires layer

A modal component that displays content on top of the current layer.

Usage

The modal is similiar in usage to a Context Menu, in that it takes an object as parameter. This object is used to find the closest layer to this object to display the modal on.

The original object is returned through the function. For a usage example, see the UI demo below.

Properties

AppearanceOverride

Use the AppearanceOverride property to style the component.

The theme data for the component can be found in the Theming section and can be overwritten through AppearanceOverride.

Pass AppearanceOverride as an optionalColorTable. More information on overrides can be found here.

PopoverAppearanceOverride

The appearance override for the popover in which the content is placed. Appearance information is available here.

Type

luau

Code block has not loaded. An error may have occurred.

Visible

Type

luau

Code block has not loaded. An error may have occurred.

Content

Type

luau

Code block has not loaded. An error may have occurred.

Padding

Type

luau

Code block has not loaded. An error may have occurred.

OnClickBesides

Type

luau

Code block has not loaded. An error may have occurred.

Theming

States

StateDescription
Base

Colors

ColorDescription
Background