MrballerpopUp is a modal library popup to confirm a form, configurable & accessible to display modals for your application.
npm i mrballerpopup
You'll need to use this on a React project for a form validation after installing import into form page.
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>;