0.2.6 • Published 2 years ago

@claudedacc/modal v0.2.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

what is this?

Open/close and style your own modal in ReactJs.

Installation

'npm i @claudedacc/modal'

Then...

import {Modal} from "@claudedacc/modal";

const [IsOpen, setIsOpen] = useState(true);

    <Modal
        ModalStatus ={IsOpen}
        setModalStatus ={setIsOpen}
        ModalContainerStyle ={{}}
        ModalBodyStyle ={{}}
        ModalInnerStyle ={{}}
        ModalCloseIconStyle ={{}}
        ModalChildren ={}
      >
      </Modal>
    </>

##Props

Modal supports several props:

  • ModalStatus - boolean (value: true / false) --- Initial value of the modal status
  • setModalStatus - function (value: true / false) --- Change the state of the Modal status
  • ModalContainerStyle - object (default value {ModalContainerStyle} / {{custom style}}) --- custom your own modalContainerstyle
  • ModalBodyStyle - object (default value {ModalBodyStyle}/ {{custom style}}) --- custom your own ModalBodyStyle style
  • ModalInnerStyle - object (default value {ModalInnerStyle}/ {{custom style}}) --- custom your own ModalInnerClass style
  • ModalCloseIconStyle - object (default value {ModalCloseIconStyle} / {{custom style}}) --- custom your own ModalCloseIconStyle style
  • ModalChildren - string (default value "" / {{custom input}}) --- custom your own inner Modal body.
0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago