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

reactplosive-modal

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactplosive-modal

A simple React modal component with an explosion effect

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
increased by587.5%
Maintainers
1
Weekly downloads
 
Created
Source

🔥 Reactplosive Modal

A simple React modal component with an explosion effect


NPM NPM License


⏬ Install

npm i reactplosive-modal

🪡 Usage

import ReactplosiveModal from "reactplosive-modal";
const YourComponent = () => {
  const [isModalVisible, setIsModalVisible] = useState(false);

  return (
    <ReactplosiveModal
      title={<h4>Title</h4>}
      isVisible={isModalVisible}
      onClose={() => setIsModalVisible(false)}
    >
      <p> Lorem ipsum dolor sit amet.</p>
      <button>I do nothing.</button>
    </ReactplosiveModal>
  );
};

⚙️ Props

{
  title?: ReactNode,
  children: ReactNode,
  isVisible: boolean,
  width?: string, // default 500px
  onClose: (visibility: boolean) => void,
  outsideClickEnabled?: boolean, // default true
};

©️ License

Licensed under MIT

Keywords

FAQs

Package last updated on 04 Jan 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