1.0.12 • Published 1 year ago

modal-component-hrnet v1.0.12

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Modal HRnet

A simple component modal with custom text.

Installation

To install the component run this command :

npm i modal-component-hrnet

Usage

To use the component import it like that :

import Modal from 'modal-component-hrnet/Modal';

We have 2 options : text and open. Text is the string display in the modal. Open is a boolean, set it to true and the modal will be open, set it to false and the modal will be closed.

Exemple :

const [isOpen, onChangeOpen] = useState(false);

return (
  <Modal
      text="Employee Created!"
      open={isOpen}
  />
);

Change the state of isOpen and automatically open or close the modal

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.2

2 years ago