# react-jmodal

> Simple and minimlistic react modal, open to escalability and manipulation to be as flexible as desired.

Latest version **1.3.14** (published 2017-01-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-jmodal
pnpm add react-jmodal
yarn add react-jmodal
bun add react-jmodal
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.14 |
| Published | 2017-01-16 |
| First published | 2016-12-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jobarah |
| Maintainers | jobarah |
| Keywords | dialog, modal, react-components, react |

## Links

- npm: https://www.npmjs.com/package/react-jmodal
- Repository: https://github.com/Jobarah/React-JModal
- Homepage: https://github.com/Jobarah/React-JModal#readme
- Issues: https://github.com/Jobarah/React-JModal/issues
- npm.io page: https://npm.io/package/react-jmodal

## Dependencies (2)

- [react](https://npm.io/package/react.md) 0.14.5
- [react-dom](https://npm.io/package/react-dom.md) 0.14.5

## 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

- 1.3.14 (latest) — 2017-01-16
- 1.3.14-0 — 2017-01-05
- 1.3.12 — 2017-01-05
- 1.3.11 — 2016-12-29
- 1.3.10 — 2016-12-29
- 1.3.9 — 2016-12-29
- 1.3.8 — 2016-12-28
- 1.3.7 — 2016-12-28
- 1.3.6 — 2016-12-28
- 1.3.5 — 2016-12-28
- 1.3.4 — 2016-12-28
- 1.3.3 — 2016-12-28
- 1.3.2 — 2016-12-28
- 1.3.1 — 2016-12-28
- 1.3.0 — 2016-12-28
- … 3 more at https://npm.io/package/react-jmodal/versions

## README

# React-JModal

Simple and minimlistic react modal, open to escalability and manipulation to be as flexible as desired.

*Usage:*  
For inline styles for modal, these must be passed as an object, as shown here:  
```
export const modalStyles = {
    mdl: {
        position: 'absolute',
        top: '50%',
        left: '50%',
        zIndex: '9000',
        transform: 'translate(-50%, -50%)'
    }
};

```  
The Object contains 4 keys:  
* mdl  
* mdlOut  
* overlay  
* overlayOut  

The styles are received by the modal this way:  

```

import React from 'react';
import ReactDOM from 'react-dom';
import ReactJModal from './ReactJModal';
import {data} from '../data';
import {modalStyles} from '../sass/modal_styles';

ReactDOM.render( <ReactJModal modalStyles = {modalStyles}>
		<div>
			<p>{data}</p>
		</div>
	</ReactJModal>, document.getElementById('app'));
```

# Live Demo  
https://jobarah.github.io/React-JModal/

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