1.0.4 • Published 2 years ago

oc-modal-p14 v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Modal Component

A customizable Modal component for React.

Installation

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";

Modal Props

PropTypeDescription
textstringThe message to display in the modal.
showModalbooleanControls the visibility of the modal.
errorbooleanIndicates if the modal should display an error style.

Usage

Exemple 1 : Modal with sucess style

<Modal text="Employé créé avec succès !" showModal={true} error={false} />

Exemple 2 : Modal with error style

<Modal text="Veuillez remplir tous les champs !" showModal={true} error={true} />

Exemple 2 : Modal with default style (remove error prop)

<Modal text="Veuillez remplir tous les champs !" showModal={true} />
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago