@svelte-put/popover
v1.0.0
Published
Minimal and ssr-friendly enhancements to Popover API with idiomatic Svelte
Downloads
87
Maintainers
Readme
@svelte-put/popover
Idiomatic Svelte enhancements to Popover API
svelte-put
This package is part of the @svelte-put family. For contributing guideline and more, refer to its readme.
Usage & Documentation
See the dedicated documentation page here.
Quick Start
<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>