Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graph-paper/portal

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graph-paper/portal

__DESCRIPTION_FORTHCOMING__

  • 0.0.0-alpha.14
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Portal

A Portal is a component that pulls its children outside of the current DOM tree, instead appending them to the end of the document. Useful for floating menus, modals, snackbars, and other elements and features that might need to "float" above the content.

This component solely handles placement at the end of the document.

usage

npm install @graph-paper/portal
<script>
import { portal } from '@graph-paper/portal';
</script>

<button on:click={toggle}>Toggle Portal</button>

{#if active}
  <Portal>This content comes after the content.</Portal>
{/if}

This content comes BEFORE the portal.

FAQs

Package last updated on 30 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc