ConfirmDialogProps

Unpublished development API. This package is under development and is not available as a published release.

Controls confirmation visibility, intent callbacks, pending confirmation, labels, and the return-focus target.

import type { ConfirmDialogProps } from '@threadplane/react/chat';

Declaration

export interface ConfirmDialogProps  {
  readonly body?: string;
  readonly cancelLabel?: string;
  readonly className?: string;
  readonly confirmLabel?: string;
  readonly onCancel: () => void;
  readonly onConfirm: () => void;
  readonly open: boolean;
  readonly pending?: boolean;
  readonly returnFocusTo?: HTMLElement | null;
  readonly title: string;
  readonly tone?: 'normal' | 'destructive';
}

Members

body

readonly body?: string;

cancelLabel

readonly cancelLabel?: string;

className

readonly className?: string;

confirmLabel

readonly confirmLabel?: string;

onCancel

readonly onCancel: () => void;

onConfirm

readonly onConfirm: () => void;

open

readonly open: boolean;

pending

readonly pending?: boolean;

returnFocusTo

readonly returnFocusTo?: HTMLElement | null;

title

readonly title: string;

tone

readonly tone?: 'normal' | 'destructive';