1. framework components
  2. portal

Portal

Renders children into a DOM node that exists outside the DOM hierarchy.

How It Works

When enabled, the content will move from the source to the target element.

Anatomy

Here’s an overview of how the Portal component is structured in code:

svelte
<script lang="ts">
	import { Portal } from '@skeletonlabs/skeleton-svelte';
</script>

<Portal>
	<!-- Content -->
</Portal>

API Reference

Unable to load component information for svelte/portal

View page on GitHub