Try Install Learn Blog API Packages GitHub
Pages
mint-ui

Search
Basic information
Entities
Versions
Dependencies
mint-color 0.5.0 <= v < 1.0.0

Ui.Modal.Base

The base component for a modal, this contains the backdrop and the centered content with transitions.

Use this when you want to create a custom modal.

Properties

children
:
Array(Html)
=
[]

The content to render.

Whether or not to trigger the close event when clicking on the backdrop.

onClose
:
Function(Promise(Never, Void))
=
Promise.never

The close event handler.

open
:
Bool
=
false

Whether or not the modal is open.

transitionDuration
:
Number
=
240

The duration of the transition.

zIndex
:
Number
=
900

The zIndex of the modal.

Functions

focusFirst
:
Promise(Never, Void)

Focuses the first focusable element in the modal.

render
:
Html

Renders the modal.