Interface for defining buttons passed to the Dialog component See NcDialogButton

interface IDialogButton {
    callback: (() => void);
    disabled?: boolean;
    icon?: string;
    label: string;
    type?:
        | "primary"
        | "secondary"
        | "error"
        | "warning"
        | "success";
}

Properties

callback: (() => void)

Callback on button click

disabled?: boolean

Disabled state of the button

false
icon?: string

Optional Icon for the button Should be a SVG image as raw string

label: string

Label of the button

type?:
    | "primary"
    | "secondary"
    | "error"
    | "warning"
    | "success"

Button type