0.0.4 • Published 1 year ago
mrballerpopup v0.0.4
Simple-component-library of React components created using create-react-app
MrballerpopUp is a modal library popup to confirm a form, configurable & accessible to display modals for your application.
Example
Installation Run the following command:
npm i mrballerpopup
You'll need to use this on a React project for a form validation after installing import into form page.
Usage & Configuration
import PopUp from "mrballerpopup";
// open Modal
const [isOpen, setIsOpen] = useState(false);
<section>
<form>// Your form validation goes here</form>
<button className="btn" onClick={onSave}>
Save
</button>
{isOpen ? <PopUp setIsOpen={setIsOpen} /> : ""}
</section>;