# @igloo-ui/dialog

> The Dialog is much like the Modal component, except it is simpler. It contains a title, sub title, dismiss action and a validate action.

Latest version **0.12.0** (published 2026-03-24) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @igloo-ui/dialog
pnpm add @igloo-ui/dialog
yarn add @igloo-ui/dialog
bun add @igloo-ui/dialog
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.12.0 |
| Published | 2026-03-24 |
| First published | 2022-10-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 22.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Officevibe Inc. |
| Maintainers | infra.admin, alexasselin008 |

## Links

- npm: https://www.npmjs.com/package/@igloo-ui/dialog
- Repository: https://github.com/workleap/ov-igloo-ui
- Homepage: https://github.com/workleap/ov-igloo-ui#readme
- Issues: https://github.com/workleap/ov-igloo-ui/issues
- npm.io page: https://npm.io/package/@igloo-ui/dialog

## Dependencies (5)

- [classnames](https://npm.io/package/classnames.md) ^2.3.2
- [@igloo-ui/modal](https://npm.io/package/@igloo-ui/modal.md) ^3.0.0
- [@igloo-ui/button](https://npm.io/package/@igloo-ui/button.md) ^0.12.0
- [@igloo-ui/tokens](https://npm.io/package/@igloo-ui/tokens.md) ^2.1.0
- [@hopper-ui/tokens](https://npm.io/package/@hopper-ui/tokens.md) ^5.0.0

## Recent versions

- 0.12.0 (latest) — 2026-03-24
- 0.11.1 — 2026-03-11
- 0.11.0 — 2025-07-22
- 0.10.0 — 2024-09-23
- 0.9.5 — 2024-09-18
- 0.9.4 — 2024-08-01
- 0.9.3 — 2024-07-24
- 0.9.2 — 2024-07-23
- 0.9.1 — 2024-05-31
- 0.9.0 — 2024-05-27
- 0.8.15 — 2024-05-15
- 0.8.14 — 2024-04-25
- 0.8.13 — 2024-04-17
- 0.8.12 — 2024-04-10
- 0.8.11 — 2024-03-08
- … 33 more at https://npm.io/package/@igloo-ui/dialog/versions

## README

# Dialog

The Dialog is much like the Modal component, except it is simpler. It contains a title, sub title, dismiss action and a validate action.

<Example is="custom" />

<ReferenceLinks is="custom" />

## Installation

To install `@igloo-ui/dialog` in your project, you will need to run the following command using [npm](https://www.npmjs.com/):

```bash
npm install @igloo-ui/dialog
```

If you prefer [Yarn](https://classic.yarnpkg.com/en/), use the following command instead:

```bash
yarn add @igloo-ui/dialog
```

## Usage

Then to use the component in your code just import it!

```jsx
import Dialog from '@igloo-ui/dialog';
import Button from '@igloo-ui/button';

const [open, setOpen] = React.useState(false);
const handleValidate = () => {
    alert("You said yes");
    setOpen(false);
};

<Button appearance="secondary" onClick={() => setOpen(true)}>
    open
</Button>
<Dialog
    title="Dialog title"
    subTitle="This is a sub title"
    dismissText="Cancel"
    validateText="Confirm"
    isOpen={open}
    onDismiss={() => setOpen(false)}
    onValidate={handleValidate}
/>
```

## Troubleshooting

**When a Dialog opens above a Modal**

In this case, when you close the Dialog, the Modal closes automatically. Here is a workaround to remedy this.

To solve the problem, set the `isClosable` property of the Modal to `false` when the Dialog component is up and then return to `true` when it closes.

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