Skip to content

Mrballer59/hr-component-library-popUp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published