4.2.8 • Published 12 months ago

modal-react-p14 v4.2.8

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Another modal component for React

https://github.com/frrobert42/modal-react-p14

Installation

npm install modal-react-p14

Usage

<Modal 
    onClose={() => console.log('modal close')}
    // modal message can accept string or jsx
    modalMessage={"Custom modal message"}
/>

or

<Modal 
    // onClose when modal is closed
    onClose={() => console.log('modal close')}
    // onClickButton when button is clicked
    onClickButton={() => console.log('button click')}
    // modal message can accept string or jsx
    modalMessage={"Message"}
    // modal background color optional props default is #000
    backgroundColor={"#000"}
    // message optional props default is #fff
    color={"#fff"}
    // button optional props if not provided button will not be displayed
    buttonMessage={""}
    buttonColor={"#fff"}
    buttonBackgroundColor={"#000"}
    // position optional props default is center
    positionX={"center"}
    positionY={"center"}
/>

Build

npm run build

A simple & lightweight method of displaying modal

Custom Style

use classe : .modal-react-p14 for styling the modal

4.2.8

12 months ago

4.2.7

1 year ago

4.2.6

1 year ago

4.2.5

1 year ago

4.2.4

1 year ago

4.2.3

1 year ago

4.2.1

1 year ago

4.2.0

1 year ago

4.0.1

1 year ago

4.0.0

1 year ago

3.1.5

1 year ago

3.1.4

1 year ago

3.1.3

1 year ago

3.1.2

1 year ago

3.1.1

1 year ago

3.0.10

1 year ago

3.0.9

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

3.0.6

1 year ago

3.0.5

1 year ago

3.0.4

1 year ago

3.0.1

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

1.2.3

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago