Socket
Socket
Sign inDemoInstall

@reach/portal

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reach/portal - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

44

index.d.ts

@@ -1,11 +0,37 @@

declare module "@reach/portal" {
import * as React from "react";
/**
* Creates and appends a DOM node to the end of `document.body` and renders a
* React tree into it. Useful for rendering a natural React element hierarchy
* with a different DOM hierarchy to prevent parent styles from clipping or
* hiding content (for popovers, dropdowns, and modals).
*
* @see Docs https://reacttraining.com/reach-ui/portal
* @see Source https://github.com/reach/reach-ui/tree/master/packages/portal
* @see React https://reactjs.org/docs/portals.html
*/
export type PortalProps = {
children: React.ReactNode;
type?: string;
};
import * as React from "react";
declare const Portal: React.FunctionComponent<PortalProps>;
export default Portal;
}
/**
* @see Docs https://reacttraining.com/reach-ui/portal#portal-props
*/
export type PortalProps = {
/**
* Regular React children.
*
* @see Docs https://reacttraining.com/reach-ui/portal#portal-children
*/
children: React.ReactNode;
/**
* The DOM element type to render.
*
* @see Docs https://reacttraining.com/reach-ui/portal#portal-type
*/
type?: string;
};
/**
* @see Docs https://reacttraining.com/reach-ui/portal#portal
*/
declare const Portal: React.FunctionComponent<PortalProps>;
export default Portal;
{
"name": "@reach/portal",
"version": "0.4.0",
"version": "0.5.0",
"description": "Declarative portals for React",

@@ -11,3 +11,3 @@ "main": "index.js",

"dependencies": {
"@reach/component-component": "^0.4.0"
"@reach/component-component": "^0.5.0"
},

@@ -28,3 +28,3 @@ "peerDependencies": {

],
"gitHead": "0f3d2c7e530cd80e1d1bd338182ac89a3ba23999"
"gitHead": "7e33672d882cd6df77ac8cdb76b6b4a21dbf28c2"
}
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