@augustindev/modal
TypeScript icon, indicating that this package has built-in type declarations

4.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @augustindev/modal

Weekly Downloads

2

Version

4.1.0

License

ISC

Unpacked Size

27.6 kB

Total Files

20

Last publish

Collaborators

  • augustindev