lion/packages/ui/components/overlays/configurations/withModalDialogConfig.js
2022-10-31 16:55:07 +01:00

16 lines
388 B
JavaScript

/**
* @typedef {import('../../types/OverlayConfig').OverlayConfig} OverlayConfig
*/
export const withModalDialogConfig = () =>
/** @type {OverlayConfig} */ ({
placementMode: 'global',
viewportConfig: {
placement: 'center',
},
hasBackdrop: true,
preventsScroll: true,
trapsKeyboardFocus: true,
hidesOnEsc: true,
handlesAccessibility: true,
});