ConfirmDialog
Confirmation modal with OK/Cancel.
import { ConfirmDialog } from '@ybouhjira/hyperkit';#Playground
Edit the code — the preview recompiles and re-renders as you type.
Loading preview…
#Props
| Prop | Type | Default | Description |
|---|---|---|---|
open * | boolean | — | — |
onClose * | () => void | — | — |
onConfirm * | () => void | — | — |
title | string | — | — |
children | JSX.Element | — | — |
confirmLabel | string | — | — |
cancelLabel | string | — | — |
variant | 'default' | 'danger' | — | — |
loading | boolean | — | — |
class | string | — | — |
* required prop.
#Design Tokens
This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.
--sk-border--sk-space-md--sk-space-sm