Type alias ConfirmDialogProps

ConfirmDialogProps: {
    body?: React.ReactNode;
    buttonLayout?: "horizontal" | "vertical";
    cancel?: string;
    confirm?: string | JSX.Element;
    confirmColor?: ButtonProps["color"];
    confirmationCommand?: string;
    handleCancel?: (() => void);
    handleConfirm?: (() => void);
    hideCancel?: boolean;
    maxWidth?: DialogProps["maxWidth"];
    open: boolean;
    title?: string;
}

Type declaration

  • Optional body?: React.ReactNode

    Pass a string to display basic styled text

  • Optional buttonLayout?: "horizontal" | "vertical"

    Optionally set button layout

  • Optional cancel?: string

    Optionally override cancel button text

  • Optional confirm?: string | JSX.Element

    Optionally override confirm button text

  • Optional confirmColor?: ButtonProps["color"]

    Optionally set confirm button color

  • Optional confirmationCommand?: string

    Optionally require user to type this string to enable the confirm button

  • Optional handleCancel?: (() => void)
      • (): void
      • Callback called when user clicks cancel

        Returns void

  • Optional handleConfirm?: (() => void)
      • (): void
      • Callback called when user clicks confirm

        Returns void

  • Optional hideCancel?: boolean

    Optionally hide cancel button

  • Optional maxWidth?: DialogProps["maxWidth"]

    Optionally set dialog max width

  • open: boolean
  • Optional title?: string

Generated using TypeDoc