# adaptable-react-modal

> An adaptable modal for React with the possibility for auto closure, custom styles, animations and custom follow up function

Latest version **1.0.3** (published 2022-12-08) · MIT license · 0 weekly downloads

## Install

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

## 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.0.3 |
| Published | 2022-12-08 |
| First published | 2022-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jerune |
| Maintainers | jeroenvds |
| Keywords | react, customizable, modal |

## Links

- npm: https://www.npmjs.com/package/adaptable-react-modal
- Repository: https://github.com/Jerune/Modal-Library
- Homepage: https://github.com/Jerune/Modal-Library#readme
- Issues: https://github.com/Jerune/Modal-Library/issues
- npm.io page: https://npm.io/package/adaptable-react-modal

## Dependencies (2)

- [prop-types](https://npm.io/package/prop-types.md) ^15.8.1
- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.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.3 (latest) — 2022-12-08
- 1.0.2 — 2022-12-07
- 1.0.1 — 2022-12-07
- 1.0.0 — 2022-12-07

## README

## Installation

run the following command:

```
npm install adaptable-react-modal
```

after installation you can import the modal component in your React app using:

```
import Modal from 'adaptable-react-modal'
```

## Features

The component offers the following features and tweaks:

- title --> Sets the H2 title text of the Modal
- text --> Sets the paragraph text of the Modal
- duration --> Sets a fixed amount of time the Modal is displayed and removes the close function
- customFunction --> Optional custom function that is run after the Modal auto closes (only works when a duration is set)
- customClass --> allows for custom styling of the Modal by including a llocal class name

## Props

The component uses props to set the above mentioned features. Those can be set on the component as seen in the below example:

```
<Modal
    title="Employee Added"
    text="Great news!"
    animation={true}
    duration={3000}
    customClass="custom"
/>
```

## Source code

The source code for this project can be found in a public Git repository at https://github.com/Jerune/Modal-Library.git

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