# woowacourse-sample-modal-rego

> Sample modal for npm publish in woowacourse

Latest version **0.0.6** (published 2023-05-04) · 0 weekly downloads

## Install

```sh
npm install woowacourse-sample-modal-rego
pnpm add woowacourse-sample-modal-rego
yarn add woowacourse-sample-modal-rego
bun add woowacourse-sample-modal-rego
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2023-05-04 |
| First published | 2023-05-02 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | regularPark |
| Maintainers | regularpark |
| Keywords | react, component, modal |

## Links

- npm: https://www.npmjs.com/package/woowacourse-sample-modal-rego
- Repository: https://github.com/regularPark/sample-modal-rego
- Homepage: https://github.com/regularPark/sample-modal-rego#readme
- Issues: https://github.com/regularPark/sample-modal-rego/issues
- npm.io page: https://npm.io/package/woowacourse-sample-modal-rego

## Dependencies (13)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [typescript](https://npm.io/package/typescript.md) ^4.9.5
- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.4
- [@types/jest](https://npm.io/package/@types/jest.md) ^27.5.2
- [@types/node](https://npm.io/package/@types/node.md) ^16.18.25
- [@types/react](https://npm.io/package/@types/react.md) ^18.2.0
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.1
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) ^18.2.1
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^13.4.0
- [@types/styled-components](https://npm.io/package/@types/styled-components.md) ^5.1.26
- [@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

- [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.0.6 (latest) — 2023-05-04
- 0.0.5 — 2023-05-02
- 0.0.3 — 2023-05-02
- 0.0.4 — 2023-05-02
- 0.0.2 — 2023-05-02
- 0.0.1 — 2023-05-02

## README

# MyModal 라이브러리

간단한 모달을 구현할 수 있는 라이브러리입니다.

## 설치 방법

```
npm install woowacourse-sample-modal-rego
```

**해당 라이브러리는 `styled-components`, `@types/styled-components`를 이용합니다.**

## 사용 방법

```
import { RegoModal } from 'woowacourse-sample-modal
```

## MyModal 사용하기

```typescript
<RegoModal trigger={<button>Open</button>}>
  <h1>title</h1>
  <p>content</p>
</RegoModal>
```

## Props

```typescript
type Props = {
  trigger: React.ReactElement;
  children?: React.ReactNode;
};
```

## 사용 예시

```typescript
import { RegoModal } from "woowacourse-sample-modal-rego";

function App() {
  return (
    <div>
      <RegoModal trigger={<button>열기</button>}>
        <h1>title</h1>
        <p>content</p>
      </RegoModal>
    </div>
  );
}
```

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