A customizable Modal component for React.
You can install the package using npm:
npm install oc-modal-p14
Import the Counter component:
import {Modal} from "oc-modal-p14/src/Modal/Modal.tsx";
Prop | Type | Description |
---|---|---|
text |
string |
The message to display in the modal. |
showModal |
boolean |
Controls the visibility of the modal. |
error |
boolean |
Indicates if the modal should display an error style. |
<Modal text="Employé créé avec succès !" showModal={true} error={false} />
<Modal text="Veuillez remplir tous les champs !" showModal={true} error={true} />
<Modal text="Veuillez remplir tous les champs !" showModal={true} />