1.0.5 • Published 12 months ago

modale_npm_lib v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

HRnet plugin

This package is meant to be used for an OpenClassrooms project. This is a simple customizable modal component for React.

Installation

The package can be installed with the command line :

npm i modale_npm_lib

Usage

It can be imported in your project with :

import { Modal } from "modale_npm_lib";

PropTypes

You can customize a couple props in your modal :

NameTypeRequiredUsage
titlestringyesTitle of the modal
descriptionstringyesComplementary message of the modal
displayedBooleanyesdisplayed should be linked to a useState with false as default value ans set to true to open the modal
onClickReact.MouseEventHandlernoShould be used to close the modal with set the useState to false like this : onClick={() => setModalDisplay(false)}
1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago