Socket
Book a DemoInstallSign in
Socket

rc-simple-modal

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-simple-modal

A simple react.js modal component

2.5.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

This is a simple React.js Modal component, easy to open and close !

Demo

See Demo Here

Install

npm i rc-simple-modal

Usage

import Modal from 'rc-simple-modal';

<Modal
   isOpen={isModalOpen} // Required, use a state to update this
   onClose={() => setIsModalOpen(false)} // Required, when user clicks the X icon on the header
   title='some text' // optional ofc, just adds some text to the header next to the X icon
   isLarge={true || false} // Optional, default is false, will make the modal a bit larger
>

   <p> This is the modal content ! </p>

</Modal>



Enjoy !!

Keywords

React.js

FAQs

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.