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

@peacechen/react-portal-overlay

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peacechen/react-portal-overlay

A lightweight and performant fullscreen overlay component using React portals to render anywhere you need them to

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
70
decreased by-21.35%
Maintainers
1
Weekly downloads
 
Created
Source

React Portal Overlay

NPM License

This is a fork of https://madeleineostoja.github.io/react-portal-overlay and published as a separate package on npmjs.com to unlock the peer dependencies.

A lightweight and performant fullscreen overlay component using React portals to render anywhere you need them to

Installation

npm i @peacechen/react-portal-overlay

Usage

See the API Docs for a full overview of props and options.

import React, { useState } from 'react';
import { Overlay } from '@peacechen/react-portal-overlay';

export default () => {
  const [open, setOpen] = useState(false);

  return (
    <Overlay open={open} onClose={() => setOpen(false)}>
      <h1>My overlay</h1>
    </Overlay>
  );
};

Keywords

FAQs

Package last updated on 09 Nov 2023

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