Modals

  1. Home
Default Modal

The default form of a modal dialog.

Slide down animation

Default modal dialog with slide down animation.

Slide up animation

Default dialog with slide down animation.

Modal Sizes

Modals have four optional sizes.

Scrolling behavior
Vertically centered

Vertically centered modal examples

Focus management

Pass the 'autoFocus' prop an element 'ref' to focus on a specific element.

Fullscreen Modal

Another override is the option to pop up a modal that covers the user viewport.

Toggle between modals

Toggle between two separate modals.

Stacked Overlays

modals are layered on top of one another.

Custom backdrop color

Use 'hs-overlay-backdrop-open:' to change the backdrop color.