lancelot-modal
v1.0.4
Published
lancelot-react is a reusable React component which can be used as a modal in React projects. ## Installation Lancelot React can be installed via npm: npm install lancelot-modal ## Prerequisites To use lancelot-react, you need Node Package Manager (12
Downloads
8
Readme
Lancelot React
lancelot-react is a reusable React component which can be used as a modal in React projects.
Installation
Lancelot React can be installed via npm: npm install lancelot-modal
Prerequisites
To use lancelot-react, you need Node Package Manager (12.x or higher) and React. One also needs a useRef React hook call
Usage/Examples
const ref = useRef(null)
<Modal text="This is a modal's text." reference={ref}/>
Properties
text : The text to display inside the modal. reference: The useRef hook.