Analytics & Reports


An overlay positioned within the viewport, displayed on top of the current page.

Triggering the handleOpen function causes the modal to open, while triggering the handleClose function causes the modal to close. The modal will also close when an element outside of the modal is clicked on.


  <yield to="target">
      Here is the content that triggers a modal window.
    <gb-button onclick="{ handleOpen }">
      Open modal
  <yield to="content">
      Here is the modal content.
    <gb-button onclick="{ handleClose }">
      Close modal


Property Type Default Description
autoOpen boolean false Whether to open the modal on mount/load.


Property Type Required Description
visible boolean The current state of the modal. On mount, is set to the value of autoOpen.


This component does not listen for any events.