silos
v1.6.4
Published
Silos
Downloads
5
Maintainers
Readme
silos
A reusable react modal component
Installation & Usage
npm install silos --save
inside index.html
<div id="modal"></div>
Include the Component
import React from 'react'
import Modal from 'silos';
class Component extends React.Component {
render() {
return (
<Modal close={() => {console.log('pass a fucntion as a prop to close the modal')} }>
<p>This is my modal content</p>
</Modal>
)
}
}