@augustindev/modal
Advanced tools
*Composant `Modal` create with `React`*.
Weekly downloads
Readme
Composant Modal
create with React
.
install package npm.
yarn add @augustindev/modal
Then use it in your app :
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)} />
)
}
content
- Text show in Modalshow
- State Modal (Show/Hide).onClose
- Callback function when user click on close button.