Socket
Socket
Sign inDemoInstall

modal-snm07-p14

Package Overview
Dependencies
84
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    modal-snm07-p14

A React modal component for OC-P14


Version published
Weekly downloads
1
Maintainers
1
Install size
10.4 kB
Created
Weekly downloads
 

Readme

Source

modal-snm07-p14

Modal window plugin for OC Project 14

A simple react modal (conversion of the jquery modal)

Npm library link

  1. Installation
  2. Examples of use
  3. Default option

Installation

You can install modal-snm07-p14 with npm: npm i modal-snm07-p14

For import modal-snm07-p14: import {Modal} from "modal-snm07-p14"

Example of use

const [showModal, setShowModal] = useState(false);
const closeModal = () => setShowModal(!showModal);

<Modal
    showModal={showModal}
    closeModal={closeModal}
    modalTitle="MyTitle"
    modalBody="MyModalText"
/>

Default option

Default type

Modal.propTypes = {
  showModal: PropTypes.bool,
  closeModal: PropTypes.bool,
  modalTitle: PropTypes.string,
  modalBody: PropTypes.string,
};

Default classNames for customization

ModalContainer       | className="modalContainer"
ModalBackground      | className="modalBackground"
ModalBody            | className="modalBody"
ModalTitleContainer  | className="modalTitleContainer"
ModalTitle           | className="modalTitle"
ModalCloseX          | className="modalCloseX"
ModalContent         | className="modalContent"
ModalTextContainer   | className="modalTextContainer"
ModalText            | className="modalText"
ModalButtonContainer | className="modalButtonContainer"
ModalButton          | className="modalButton"

FAQs

Last updated on 29 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc