# simple-react-animated-modal

> A simple way to make animated modal

Latest version **1.0.0** (published 2020-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-react-animated-modal
pnpm add simple-react-animated-modal
yarn add simple-react-animated-modal
bun add simple-react-animated-modal
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-11-01 |
| First published | 2020-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yuri014 |
| Maintainers | yuri014 |

## Links

- npm: https://www.npmjs.com/package/simple-react-animated-modal
- Repository: https://github.com/yuri014/simple-react-animated-modal
- Homepage: https://github.com/yuri014/simple-react-animated-modal#readme
- Issues: https://github.com/yuri014/simple-react-animated-modal/issues
- npm.io page: https://npm.io/package/simple-react-animated-modal

## Recent versions

- 1.0.0 (latest) — 2020-11-01

## README

# simple-react-animated-modal

> A simple way to make an animated modal

[![NPM](https://img.shields.io/npm/v/simple-react-animated-modal.svg)](https://www.npmjs.com/package/simple-react-animated-modal) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

<p align="center">
  <img width="600" src="./screen/screen.gif">
</p>

## Install

```bash
npm install --save simple-react-animated-modal
```

## Usage

```tsx
import React from 'react';

import MyComponent from 'simple-react-animated-modal';
import 'simple-react-animated-modal/dist/index.css';

function Example() {
  const [showModal, setShowModal] = useState(false);

  return (
    <div>
      <button onClick={() => setShowModal(true)}>Click Here</button>
      <AnimatedModal
        show={showModal}
        title="Example"
        onHide={() => setShowModal(false)}
        closeButton={<strong>X</strong>}
        style={{
          backgroundColor: '#1e2939',
          border: '2px solid #1cc5b7',
          color: 'white',
          boxShadow: '2px 2px 4px black',
        }}
        headStyle={{
          borderBottom: '1px solid white',
          height: '3.2rem',
        }}
      >
        <div className="modal-body">
          <p>This is an exemple.</p>
        </div>
      </AnimatedModal>
    </div>
  );
}
```

## License

MIT © [yuri014](https://github.com/yuri014)

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