Skip to content

UI Api

addStyles(id, style): () => void

Adds a style to the DOM

ParameterType
idstring
stylestring

Function

A function to remove the styles

void


removeStyles(id): void

Remove all styles with a given id

ParameterType
idstring

void


showModal(element, options): void

Shows a customizable modal to the user

ParameterType
elementHTMLElement | ReactElement<any, string | JSXElementConstructor<any>>
optionsPartial<{ buttons: ModalButton[]; className: string; closeOnBackgroundClick: boolean; id: string; onClosed: () => void; style: string; title: string; }>

void