@gowku/modal-npm
v1.0.3
Published
A simlpe Modal component for React.
Downloads
1
Readme
Modale plugin for React
A simlpe Modal component for React.
Features
Display and quit modale
Download
Requirements
- React 18.2.0+
Installation
- using NPM
npm i @gowku/modale-npm
Usage
To use the plugin, import it in your React component.
the component needs 3 props to work: content
, handleChange
and value
then you can personalize your modal with 4 css classes : Modal-cover
, Modal-container
, Modal-button
, Modal-button-text
,
MyComponent.js
import Modal from "@gowku/modale-npm`";
const MyModal = () => {
<Modal content={yourPersonalContent} handleChange={setIsOpen} value={isOpen} />;
};