createModalStack
const createModalStack = (
config: ModalStackConfig,
customDefaultOptions?: ModalOptions
) => ModalStackArgument: ModalStackConfig config - Modal stack configuration.
Argument: ModalOptions customDefaultOptions - Configuration options to apply to all modals by default (optional).
Returns: Modal stack configuration object to provide to <ModalProvider/>'s stack prop.
Example:
Last updated
Was this helpful?