# react_modal_julfrontdev

> React Modal

Latest version **0.1.7** (published 2022-10-29) · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2022-10-29 |
| First published | 2022-10-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 8 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Julien Verley Frontend Developer |
| Maintainers | julfrontdev |
| Keywords | react, modal, components, UI |

## Links

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

## Dependencies (8)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.4
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.1
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.12.1
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^13.4.0
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.16.5
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.5.0

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 0.1.7 (latest) — 2022-10-29
- 0.1.6 — 2022-10-29
- 0.1.5 — 2022-10-24
- 0.1.4 — 2022-10-24
- 0.1.3 — 2022-10-24
- 0.1.2 — 2022-10-22
- 0.1.1 — 2022-10-21
- 0.1.0 — 2022-10-17

## README

![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white) ![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white) ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E) ![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB)

# react_modal_julfrontdev

The Modal is made for [React](https://reactjs.org).

Features include:

- modal,
- style with props,
- static or dynamic text content.

# Installation and usage

The easiest way to use react_modal_julfrontdev is to install it from npm and build it into your app with Webpack.

```
yarn add react_modal_julfrontdev
```

or

```
npm install react_modal_julfrontdev
```

Then use it in your app:

#### With React Hooks (props example)

```js
import React, { useState } from "react";
import { Modal } from "react_modal_julfrontdev";

export default function App() {
  const [showModal, setShowModal] = useState(false);
  const openModal = () => {
    setShowModal((prev) => !prev);
  };

  return (
    <div className="App">
      <Modal
        showModal={showModal}
        setShowModal={setShowModal}
        modalBackgroundColor="#544343"
        modalCloseButton="Close"
        modalContentColor="white"
        modalBorder="0px"
        modalFontSize="1.8rem"
        modalStaticTextContentFirstPart="Employee"
        modalDynamicTextContentFirstPart={lastAddedFirstName}
        modalDynamicTextContentLastPart={lastAddedLastName}
        modalStaticTextContentLastPart="added successfully"
      />
    </div>
  );
}
```

## Props

Props you may want to specify include:

- `setShowModal`- callback function to show or hide modal,
- `modalBackgroundColor` - to set modal background color,
- `modalCloseButton`- to set close button text content,
- `modalContentColor` - to set modal content color,
- `modalBorder` - to change modal border,
- `modalFontSize` - to change modal font size,
- `modalStaticTextContentFirstPart` - to change modal first part static text content,
- `modalDynamicTextContentFirstPart` - to dynamically change modal first part text content,
- `modalDynamicTextContentLastPart` - to dynamically change modal last part text content,
- `modalStaticTextContentLastPart` - to change modal last part static text content,

## Thanks

Thank you to [Antoine Bourin](https://github.com/AntoineBourin) who made this possible!

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