New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-minimal-modal

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-minimal-modal

A react minimal modal library

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

To install, you can use npm or yarn:

$ npm install --save react-minimal-modal
$ yarn add react-minimal-modal

Live demo

Examples

Here is a simple example of react-minimal-modal being used in a component:

import { useState } from 'react'
import Modal from 'react-minimal-modal'

export default function Component() {
   const [isOpen, setIsOpen] = useState()

   return (
      <div>
         <button onClick={() => setIsOpen(true)}>Open Modal</button>

         <Modal open={isOpen} onOpenChange={setIsOpen} title="Hello">
            <div>I am a modal</div>
         </Modal>
      </div>
   )
}

Keywords

react-minimal-modal

FAQs

Package last updated on 03 Apr 2024

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