Modal

Overview

Modals focus the user's attention exclusively on one task or piece of information via a window that sits on top of the page content.

Example

Properties

PropertyDescriptionTypeValuesDefaultRequired
primaryLabelThe label for the primary actionString
contentThe content of the modalstring
secondaryLabelThe label for the secondary actionstring
titleThe title of the modalstring
showShow and hide the modalbooleanfalse
closeOnOutsideClickClose the modal on outside clickbooleantrue
primaryFocusFocus on the primary actionbooleantrue
showSpinnerShows a spinnerbooleanfalse
spinnerTextThe text of the spinnerstring

Slots

NameDescription
defaultThe content of the modal
iconThe icon for the modal title