usePortal

Mount elements to different parts of the DOM.

Basic Example

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

<div use:usePortal={'#layers'}>
	<!-- content... -->
</div>