# react-modal-es6

> ReactJS Modal component

Latest version **0.1.1** (published 2015-11-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-modal-es6
pnpm add react-modal-es6
yarn add react-modal-es6
bun add react-modal-es6
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2015-11-25 |
| First published | 2015-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dejan Tasic |
| Maintainers | dejantasic |
| Keywords | react, modal |

## Links

- npm: https://www.npmjs.com/package/react-modal-es6
- Repository: https://dtasic@github.com/dtasic/react-modal-es6
- Homepage: https://github.com/dtasic/react-modal-es6#readme
- Issues: https://github.com/dtasic/react-modal-es6/issues
- npm.io page: https://npm.io/package/react-modal-es6

## 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.1 (latest) — 2015-11-25
- 0.0.0 — 2015-11-04

## README

# react-modal.js #

ReactJS Modal component (ES6 class)

### What is this repository? ###

* ReactJS component
* v.1.0

### How do I get set up? ###

* add react-modal.js to React as component

### Usage ###

* param openbtn={bool} - set if component will show button for opening modal. If set to false (or absent) modal will open automatically.
* param opentext={bool} - text for open button
* param content={variable or other component} - content for modal

* passing variable as content:
```
var democontent = <div id='content'>some demo HTML</div>;
<Modal
  openbtn={true}
  opentext="open modal 1"
  content={democontent}
/>

```

* passing other react component as content:
```
<Modal
  openbtn={true}
  opentext="open modal 2"
  content=<TestContent someprop='(test prop value)'/>
/>

```

* you need to position content with CSS inside modal.

### Demo ###

http://codepen.io/dtasic/pen/zvJvRj

### Who do I talk to? ###

* dtasic@gmail.com

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