ModalLauncher

View on Github

ModalLauncher is a utility that allows calling Modal and ModalConfirm in an imperative code, in functions.

Import

import { ModalLauncher } from '@contentful/f36-components';
// or
import { ModalLauncher } from '@contentful/f36-modal';

Examples

ModalLauncher is convenient because you can return results from modal interations as a Javascript promise.