Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@augustindev/modal

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Issues
File Explorer

Advanced tools

@augustindev/modal

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

    4.1.0latest

Version published
Maintainers
1
Yearly downloads
354

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.
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc