1.6.2 • Published 2 years ago

modale-react-rm v1.6.2

Weekly downloads
-
License
mgl-studio
Repository
-
Last release
2 years ago

modale-react-rm

modale-react-rm library by Romin Manogil NPM JavaScript Style Guide

Install

npm i modale-react-rm

Example

Modale

Usage

import React from 'react'
const App = () => {
   /* setting the modale*/
   const [isOpen, setIsOpen] = useState(false)
   
   const message = 'Modale is open'
   
   return (
      <div>
         /*example to open up*/
         <button type='button' onClick={setIsOpen(true)}>Save</button>
         <Modale content={message} trigger={isOpen} setTrigger={setIsOpen} />
      </div>
   )
}
export default App

Controllable Props

Prop nameDescriptionDefault
contentstring Your messagen/a
triggerboolean Open or close modalefalse(closed)
setTriggercross function used boolean params() => setTrigger(false)

More info

The GitHub repository containing this library can be found at: https://github.com/RominM/modale-react-rm/

License

MIT © mglStudio

1.6.2

2 years ago

1.6.1

2 years ago

1.5.1

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago