simple-modal-component-bourin

0.2.3 • Public • Published

A simple & lightweight method of displaying modal windows.

Installation

To install, you can use npm or yarn:

$ npm install simple-modal-component $ yarn add simple-modal-component

Usage

import Modal from "@simple-modal-component-ab/Modal";

export const Exemple = () => {
	const [isOpened, setIsOpened] = useState(false);

	return(	
		<Modal
			isOpened={isOpened}
			onClose={() => setIsOpened(false)}
		>
			<p>Your text here</p>
		</Modal>
	)
}```

Readme

Keywords

none

Package Sidebar

Install

npm i simple-modal-component-bourin

Weekly Downloads

1

Version

0.2.3

License

none

Unpacked Size

6.4 kB

Total Files

5

Last publish

Collaborators

  • abourin