> For the complete documentation index, see [llms.txt](https://docs.navigaglobal.com/dashboard-plugin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.navigaglobal.com/dashboard-plugin/api-and-gui/api/confirm.md).

# confirm

An instance to display a confirm dialog that covers the entire Dashboard, and prevents the user from interacting with anything under it.

## How to use

### add

```jsx
import { Plugin } from '@root'

const confirmPayload = {
    message: `Are you sure about that 🤔?`,
    onClose: () => {},
    onCancel: () => {}
    onConfirm: () => {},
    closable: true,
    localizations: {
        cancel: 'Cancel',
        confirm: 'Confirm'
    }
}

Plugin.confirm.add(confirmPayload)
```

### remove

simply by calling Plugin.confirm.remove()
