Skip to content

doodlezucc/svelte-tether

Repository files navigation

Svelte Tether

A small collection of Svelte wrapper components to teleport snippets from one place to another. Useful for popovers and modal elements.

The library is written with Svelte snippets in mind. Basic usage of a tether wrapper looks like this:

<Tether origin="top-center">
	{#snippet portal()}
		<i>Tether.</i>
	{/snippet}

	<span>Sample text.</span>
</Tether>

Make sure to check out the documentation for concepts, examples and use cases!

About

Svelte wrapper components to teleport snippets from one place to another.

Resources

License

Stars

Watchers

Forks