Modals

Default modal

A default modal opened using the default trigger component.

A custom trigger button for the same default modal.

You have complete control of the modal content - you can even add forms.

If you need a lot of content in a modal, the y-overflow will automatically appear.

Options

Manually disabled "esc-to-close" and "backdrop-click"

Force the user to take an action by setting the "force-action" attribute. This option also hides the close "x" icon

Sizes

Alert Modals

We also have an "alert" modal style. All of the same options are available to you.

 

As well as all of the options listed here, you can also set the "open" attribute to have a modal open on page load. The default is false.