0.1.18 • Published 11 months ago

react-aline-modal v0.1.18

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

react-aline-modal

Installing the react-aline-modal Library

To install and use the react-aline-modal component in your project, follow these steps:

Installation

Run the following command to install the modal component:

npm install react-aline-modal

Usage

Once installed, you can import and use the modal in your React components.

Example:

import Modal from "react-aline-modal";

function App() {
 const [isOpen, setIsOpen] = useState(false);

 return (
   <div>
     <button onClick={() => setIsOpen(true)}>Ouvrir la modal</button>
     <Modal open={isOpen} title = "title" textContent = 'your text content' onClose={() => setIsOpen(false)} />
   </div>
 );
}

export default App;

Props

  • open: boolean - Controls whether the modal is visible (true) or hidden (false).
  • onClose: function - Function to close the modal.
  • title: string - Title displayed in the modal header.
  • textContent: string - Main content displayed in the modal body.

Prerequis

Avant d'installer cette librairie, assurez-vous que vous avez les prérequis suivants :

  • Node.js version 14 ou supérieure
  • npm version 6 ou supérieure.

Si vous utilisez React, vous aurez également besoin de :

  • React >= 17.x
0.1.18

11 months ago

0.1.17

11 months ago

0.1.16

11 months ago

0.1.15

11 months ago

0.1.14

11 months ago

0.1.13

11 months ago

0.1.12

11 months ago

0.1.11

11 months ago

0.1.10

11 months ago

0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago