@svelte-put/popover
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@svelte-put/popover

npm.badge bundlephobia.badge docs.badge

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>

Package Sidebar

Install

npm i @svelte-put/popover

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

16.3 kB

Total Files

9

Last publish

Collaborators

  • vnphanquang