# modalable

> React HOC for a component to be a Modal component

Latest version **1.0.7** (published 2018-05-01) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install modalable
pnpm add modalable
yarn add modalable
bun add modalable
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2018-05-01 |
| First published | 2018-04-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 98.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | soso |
| Maintainers | abbycrook |
| Keywords | react, hoc, modal |

## Links

- npm: https://www.npmjs.com/package/modalable
- Repository: https://github.com/yizao/modalable
- Homepage: https://github.com/yizao/modalable#readme
- Issues: https://github.com/yizao/modalable/issues
- npm.io page: https://npm.io/package/modalable

## Dependencies (1)

- [antd](https://npm.io/package/antd.md) ^3.4.4

## 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.0.7 (latest) — 2018-05-01
- 1.0.0 — 2018-04-28

## README

# Installation

```bash
npm install modalable --save
```

or 

```bash
yarn add modalable
```

# Usage 

```javascript
import { modalable } from 'modalable'

const DemoComponent = () => (
  <h3>React Modal HOC Demo</h3>
)

const DemoModalable = modalable(DemoComponent);

class WrappComponent extends PureComponent {
  render() {
    return (
      <div style={{ textAlign: 'center', marginTop: 100 }}>
        <DemoModalable ref={node => this.demoModal = node} title="test" />
        <a href="javascript:void(0);" onClick={() => this.demoModal.toggleVisible(true)}>Click me</a>
      </div>
    )
  }
}
```

# API
See Ant Design [Modal](http://ant.design/components/modal-cn/) Component Api

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