0.1.13 • Published 1 year ago

ui-modale-kb v0.1.13

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

ui-modale-kb

Description

A modal pluggin for react using create-react-app.

Installation

Run the following command:

npm install ui-modale-kb

How to use ?

1 - Import the pluggin :

import Modale from "ui-modale-kb"

2 - Use this state :

const [displayModale, setDisplayModale] = useState(false)

3 - Return the modal :

    <Modale
        title="Success"
        content="New employee created !"
        displayModale={displayModale}
        onHide={() => setDisplayModale(false)}
    />

Example

  const [displayModale, setDisplayModale] = useState(false); 
  
  return (
    <div className="App">
      <h1>Ui Modale Kb Example</h1>
    <button id="myBtn"  onClick={() => setDisplayModale(true)}>Open Modal</button>
      <Modale  displayModale={displayModale} onHide={() => setDisplayModale(false)} title="Modal title here" content="Your message here"  />
    </div>
  );
  
0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago