Socket
Socket
Sign inDemoInstall

@augustindev/modal

Package Overview
Dependencies
6
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @augustindev/modal

*Composant `Modal` create with `React`*.


Version published
Weekly downloads
1
Maintainers
1
Install size
27.0 kB
Created
Weekly downloads
 

Readme

Source

@augustindev/modal

Composant Modal create with React.

Installation and usage

install package npm.

yarn add @augustindev/modal

Then use it in your app :

With React Component

import React, { useState } from 'react'
import { Modal } from "@augustindev/modal/dist"

export default function App() {

    const [stateModal, setStateModal] = useState(false)

    return (
        <Modal content='Text modale' show={stateModal} onClose={() => setStateModal(false)} />
    )
}

Props

  • content - Text show in Modal
  • show - State Modal (Show/Hide).
  • onClose - Callback function when user click on close button.

FAQs

Last updated on 14 May 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc