0.0.4 • Published 1 year ago

mrballerpopup v0.0.4

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

forthebadge forthebadge forthebadge

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

The popUp Modal

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>;

Authors