Portal

A component or action to mount content from one part of the dom to another.

Basic Example

<script>
	import { Portal } from 'lithesome';
</script>

<Portal>
	<!-- content... -->
</Portal>

Svelte action

If you don’t want to use a whole component, you can use the usePortal action.

View the usePortal page for more info.

<script>
	import { usePortal } from 'lithesome';
</script>

<div use:usePortal>
	<!-- content... -->
</div>