Skip to main content

ModalOptions

type ModalOptions = {
data?: ModalContent;
formType?: FormType;
name?: string;
size?: ModalSize;
target?: string;
type: ModalType;
};

modal options

Properties

data?

optional data?: ModalContent;

ModalContent

content to display in warning / success / error / info modal types


formType?

optional formType?: FormType;

FormType

form type


name?

optional name?: string;

name of the form or tool

optional for warning / success / error / info modal type


size?

optional size?: ModalSize;

ModalSize

size of the modal

Default

ModalSize.EXTRA_LARGE

target?

optional target?: string;

target item

optional for warning / success / error / info modal type


type

type: ModalType;

ModalType

type of the modal