# modal-library-react-hb

> ## Installation Run the following command: `npm install modal-library-react-hb/dist/Modal`

Latest version **0.1.0** (published 2022-05-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install modal-library-react-hb
pnpm add modal-library-react-hb
yarn add modal-library-react-hb
bun add modal-library-react-hb
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2022-05-18 |
| First published | 2022-05-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 53 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Bruno HOARAU |
| Maintainers | hoarau.bruno |
| Keywords | modal, React, library |

## Links

- npm: https://www.npmjs.com/package/modal-library-react-hb
- npm.io page: https://npm.io/package/modal-library-react-hb

## Dependencies (7)

- [react](https://npm.io/package/react.md) ^18.1.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.1.0
- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.4
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.1
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^13.2.0
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.16.4
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.5.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2022-05-18

## README

# modal-library-react-hb

## Installation
Run the following command:
`npm install modal-library-react-hb/dist/Modal`

## Import
```javascript
import Modal from 'modal-library-react-hb/dist/Modal'

<Modal />
```

## How to use

### Opening
```javascript
import Modal from 'modal-library-react-hb/dist/Modal'

const MyComponent = () => {
	return(
		<>
			<Modal isModal={true} />
		</>
	)
}
```
### Closing
To close the modal you need to pass the parameter "isModal" to "false" or press to the cross "button close"

```javascript
			<Modal isModal={true} />
```
### Add content

```javascript
import Modal from 'modal-library-react-hb/dist/Modal'

const MyComponent = () => {
	return(
		<>
			<Modal
			 	h1="Title"
				text="Lorem opsum"
			 />
		</>
	)
}

```

### Customize

You can customize the background ( which is opaque by default), the modal, the title, the text

```javascript
import Modal from 'modal-library-react-hb'

const MyComponent = () => {
	return(
		<>
			<Modal
			 	bgModal={{backgroundColor: "red"}} // style of the opaque background by default
				styleContainer={{border: "1px solid black"}} // style of the box
				styleH1={{color: "blue", fontSize: "14px" }} // style of tilte
				styleText={{FontWeight: "20px"}} // style of text
				styleButton={{borderRadus: "5px"}} // style of button
			 />
		</>
	)
}

```

---
_Source: https://npm.io/package/modal-library-react-hb · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
