Modal-component-library-p14 is a modal library
npm install modal-component-library-p14Modal component library is a modal library. It's goal is to provide easy, flexible, configurable and accessible way to display modals for your application.
!img
``bash`
npm i modal-component-library-p14
Import Modal component from "modal-component-library" where you want to use this
`jsx
import React, { useState } from "react";
import ModalComponent from "modal-component-library-p14";
function App() {
const [ModalIsVisible, setModalIsVisible] = useState(false)
const closeModal = () => { setModalIsVisible(false) }
return (
Props
| Name | Type | Required | Description |
| --------------- | ------------- | -------- | ------------------------------------------------------------------------ |
| visible |
boolean | true | Display the modal |
| closeButton | func | true | The function to close the modal |
| text | string | true` | Message to show |