# @types/muibox

> TypeScript definitions for muibox

Latest version **1.3.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/muibox
pnpm add @types/muibox
yarn add @types/muibox
bun add @types/muibox
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.3.4 |
| Published | 2023-11-07 |
| First published | 2019-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51394 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/muibox
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/muibox
- npm.io page: https://npm.io/package/@types/muibox

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 1.3.4 (latest) — 2023-11-07
- 1.3.2 (ts3.6) — 2021-07-08
- 1.3.1 (ts3.0) — 2020-07-06
- 1.0.0 (ts2.0) — 2019-06-27
- 1.3.3 — 2023-10-18
- 1.3.0 — 2020-05-27

## README

# Installation
> `npm install --save @types/muibox`

# Summary
This package contains type definitions for muibox (https://github.com/chunkai1312/muibox).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/muibox.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/muibox/index.d.ts)
````ts
import { ReactNode } from "react";

export function DialogProvider(_: any): any;
export function useDialog(): Dialog;
export function withDialog(): (WrappedComponent: any) => (props: any) => any;

export interface Dialog {
    alert(options: AlertOptions | string): Promise<void>;
    confirm(options: ConfirmOptions | string): Promise<void>;
    prompt(options: PromptOptions | string): Promise<string>;
}

export interface DialogButtonOptions {
    text?: string | undefined;
    color?: string | undefined;
    variant?: string | undefined;
    startIcon?: ReactNode | undefined;
    endIcon?: ReactNode | undefined;
}

export interface AlertOptions {
    title?: string | undefined;
    message?: string | ReactNode | undefined;
    ok?: DialogButtonOptions | undefined;
}

export interface ConfirmOptions extends AlertOptions {
    cancel?: DialogButtonOptions | undefined;
}

export interface PromptOptions extends ConfirmOptions {
    required?: boolean | undefined;
    defaultValue?: string | number | undefined;
    placeholder?: string | undefined;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Diego Mijelshon](https://github.com/diegose), and [David DIVERRES](https://github.com/comxd).

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