<modal-open-button>

When pressed, will toggle a <modal>.

Parameters

  • default

Attributes

  • modal (required): the id of a modal
  • supports all button attributes

Example

<modal id="hello-modal">Hello!</modal>
<modal-open-button modal="hello-modal">Press Me!</modal-open-button>

Show Source


Edit this page