
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
@leafygreen-ui/portal
Advanced tools
yarn add @leafygreen-ui/portal
npm install @leafygreen-ui/portal
import Portal from '@leafygreen-ui/portal';
<Portal>
<div>
Portals transport their children to a div that is appended to the end of the
document.body to or a node that can be specified with a container prop.
</div>
</Portal>;
Output HTML
<div>
<div class="leafygreen-ui-xi606m">
Portals transport their children to a div that is appended to the end of the
document.body to or a node that can be specified with a container prop.
</div>
</div>
Prop | Type | Description | Default |
---|---|---|---|
container | DOM Node | Sets the container node, which will contain all of the portaled content. If no container is supplied, a div will be created and apened to the end of the document.body . | document.createElement('div') |
children | node | The children will be rendered inside of the portaled container. |
FAQs
LeafyGreen UI Kit Portal
The npm package @leafygreen-ui/portal receives a total of 38,674 weekly downloads. As such, @leafygreen-ui/portal popularity was classified as popular.
We found that @leafygreen-ui/portal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.