1.0.0 • Published 7 months ago

veb-modal v1.0.0

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

##Description :

a modal pluggin for react

##Installation :

npm install --save veb-modal

##Usage :

The Modal component needs 5 props :

{text} : the text to display in the modal
{closeModal} : the function to close the modal (you have to add it closing function in your file)
{styleModalBody} : the style of the modal
{styleButton} : the style of the button
{styleText} : the style of the text

##Example :

import React, { useState } from 'react' import Modal from 'veb-modal' import 'react-modal-component-library/dist/index.css'

function Example () { const modalVisible, setModalVisible = useState(false);

const openModal = () => {
    setModalVisible(true);
};

const closeModal = () => {
    setModalVisible(false);
};

return (
  <div> 
    <button onClick={openModal}> Open Modal </button>
    {modalVisible && <Modal text="Employee Created !" closeModal={closeModal} />}
  </div>
)

}

1.0.0

7 months ago

0.4.5

7 months ago

0.4.6

7 months ago

0.4.4

7 months ago

0.4.3

7 months ago

0.4.2

7 months ago

0.4.1

7 months ago

0.4.0

7 months ago

0.3.9

7 months ago

0.3.8

7 months ago

0.3.7

7 months ago

0.3.6

7 months ago

0.3.5

8 months ago

0.3.4

8 months ago

0.3.3

8 months ago

0.3.2

8 months ago

0.3.1

8 months ago

0.3.0

8 months ago

0.2.0

8 months ago

0.1.0

8 months ago