This package is part of the @svelte-put family. For contributing guideline and more, refer to its readme.
See the dedicated documentation page here.
<script>
import { Popover } from '@svelte-put/popover';
const popover = new Popover();
</script>
<button {...popover.control.attributes} use:popover.control.actions>
Open me Popover
</button>
<div {...popover.target.attributes} use:popover.target.actions>
<p>Popover content. Click backdrop to dismiss</p>
</div>