Skip to content

Instantly share code, notes, and snippets.

@thangman22
Created May 1, 2024 06:11
Show Gist options
  • Save thangman22/9ff06c70117fc6b3a1eef73912373e61 to your computer and use it in GitHub Desktop.
Save thangman22/9ff06c70117fc6b3a1eef73912373e61 to your computer and use it in GitHub Desktop.
<button popovertarget="my-popover" class="trigger-btn"> Open Popover </button>
<div id="my-popover" popover=manual>
<p>I am a popover with more information. Hit the close button or toggle to close me.<p>
<button class="close-btn" popovertarget="my-popover" popovertargetaction="hide">
<span aria-hidden="true">❌</span>
<span class="sr-only">Close</span>
</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment