Overlay mask
EuiOverlayMask is simply a display component used to obscure the main content to bring attention to its children or other content. It is best used in conjunction with hyper-focus content areas like
modals and flyouts.There are many considerations to make before choosing to use an overlay. At the very least, you must provide a visible button to close the overlay. You can also nest an EuiFocusTrap to handle closing the overlay.
Loading...
Masks with header
Managing z-index levels of multiple portal-positioned components and their different contexts is complicated from within the library. EuiOverlayMask gives you control over whether it should appear below or above an EuiHeader by providing the
headerZindexLocation
prop. By default this is set to "above"
for common cases like with EuiModal where the header should be obscured. However, a component like EuiFlyout which utilizes the overlay mask but should keep the header visible should use "below"
(which is its default value).Props
EuiOverlayMask
Prop | Description and type | Default value |
---|---|---|
Prop className# | Description and type Type: string | Default value |
Prop aria-label# | Description and type Type: string | Default value |
Prop data-test-subj# | Description and type Type: string | Default value |
Prop color# | Description and type Type: string | Default value |
Prop prefix# | Description and type Type: string | Default value |
Prop rel# | Description and type Type: string | Default value |
Prop property# | Description and type Type: string | Default value |
Prop slot# | Description and type Type: string | Default value |
Prop style# | Description and type Type: string | Default value |
Prop title# | Description and type Type: string | Default value |
Prop dir# | Description and type Type: string | Default value |
Prop accessKey# | Description and type Type: string | Default value |
Prop draggable# | Description and type Type: string | Default value |
Prop lang# | Description and type Type: string | Default value |
Prop translate# | Description and type Type: string | Default value |
Prop id# | Description and type Type: string | Default value |
Prop role# | Description and type Type: string | Default value |
Prop contentEditable# | Description and type Type: string | Default value |
Prop inputMode# | Description and type Type: string | Default value |
Prop nonce# | Description and type Type: string | Default value |
Prop tabIndex# | Description and type Type: string | Default value |
Prop content# | Description and type Type: string | Default value |
Prop aria-live# | Description and type Type: string | Default value |
Prop onClick# | Description and type Type: string | Default value |
Prop defaultChecked# | Description and type Type: string | Default value |
Prop defaultValue# | Description and type Type: string | Default value |
Prop suppressContentEditableWarning# | Description and type Type: string | Default value |
Prop suppressHydrationWarning# | Description and type Type: string | Default value |
Prop autoFocus# | Description and type Type: string | Default value |
Prop contextMenu# | Description and type Type: string | Default value |
Prop spellCheck# | Description and type Type: string | Default value |
Prop radioGroup# | Description and type Type: string | Default value |
Prop about# | Description and type Type: string | Default value |
Prop datatype# | Description and type Type: string | Default value |
Prop inlist# | Description and type Type: string | Default value |
Prop resource# | Description and type Type: string | Default value |
Prop rev# | Description and type Type: string | Default value |
Prop typeof# | Description and type Type: string | Default value |
Prop vocab# | Description and type Type: string | Default value |
Prop autoCapitalize# | Description and type Type: string | Default value |
Prop autoCorrect# | Description and type Type: string | Default value |
Prop autoSave# | Description and type Type: string | Default value |
Prop itemProp# | Description and type Type: string | Default value |
Prop itemScope# | Description and type Type: string | Default value |
Prop itemType# | Description and type Type: string | Default value |
Prop itemID# | Description and type Type: string | Default value |
Prop itemRef# | Description and type Type: string | Default value |
Prop results# | Description and type Type: string | Default value |
Prop security# | Description and type Type: string | Default value |
Prop unselectable# | Description and type Type: string | Default value |
Prop is# | Description and type Type: string | Default value |
Prop aria-activedescendant# | Description and type Type: string | Default value |
Prop aria-atomic# | Description and type Type: string | Default value |
Prop aria-autocomplete# | Description and type Type: string | Default value |
Prop aria-braillelabel# | Description and type Type: string | Default value |
Prop aria-brailleroledescription# | Description and type Type: string | Default value |
Prop aria-busy# | Description and type Type: string | Default value |
Prop aria-checked# | Description and type Type: string | Default value |
Prop aria-colcount# | Description and type Type: string | Default value |
Prop aria-colindex# | Description and type Type: string | Default value |
Prop aria-colindextext# | Description and type Type: string | Default value |
Prop aria-colspan# | Description and type Type: string | Default value |
Prop aria-controls# | Description and type Type: string | Default value |
Prop aria-current# | Description and type Type: string | Default value |
Prop aria-describedby# | Description and type Type: string | Default value |
Prop aria-description# | Description and type Type: string | Default value |
Prop aria-details# | Description and type Type: string | Default value |
Prop aria-disabled# | Description and type Type: string | Default value |
Prop aria-dropeffect# | Description and type Type: string | Default value |
Prop aria-errormessage# | Description and type Type: string | Default value |
Prop aria-expanded# | Description and type Type: string | Default value |
Prop aria-flowto# | Description and type Type: string | Default value |
Prop aria-grabbed# | Description and type Type: string | Default value |
Prop aria-haspopup# | Description and type Type: string | Default value |
Prop aria-invalid# | Description and type Type: string | Default value |
Prop aria-keyshortcuts# | Description and type Type: string | Default value |
Prop aria-labelledby# | Description and type Type: string | Default value |
Prop aria-level# | Description and type Type: string | Default value |
Prop aria-modal# | Description and type Type: string | Default value |
Prop aria-multiline# | Description and type Type: string | Default value |
Prop aria-multiselectable# | Description and type Type: string | Default value |
Prop aria-orientation# | Description and type Type: string | Default value |
Prop aria-owns# | Description and type Type: string | Default value |
Prop aria-placeholder# | Description and type Type: string | Default value |
Prop aria-posinset# | Description and type Type: string | Default value |
Prop aria-pressed# | Description and type Type: string | Default value |
Prop aria-readonly# | Description and type Type: string | Default value |
Prop aria-relevant# | Description and type Type: string | Default value |
Prop aria-required# | Description and type Type: string | Default value |
Prop aria-roledescription# | Description and type Type: string | Default value |
Prop aria-rowcount# | Description and type Type: string | Default value |
Prop aria-rowindex# | Description and type Type: string | Default value |
Prop aria-rowindextext# | Description and type Type: string | Default value |
Prop aria-rowspan# | Description and type Type: string | Default value |
Prop aria-selected# | Description and type Type: string | Default value |
Prop aria-setsize# | Description and type Type: string | Default value |
Prop aria-sort# | Description and type Type: string | Default value |
Prop aria-valuemax# | Description and type Type: string | Default value |
Prop aria-valuemin# | Description and type Type: string | Default value |
Prop aria-valuenow# | Description and type Type: string | Default value |
Prop aria-valuetext# | Description and type Type: string | Default value |
Prop dangerouslySetInnerHTML# | Description and type Type: string | Default value |
Prop onCopy# | Description and type Type: string | Default value |
Prop onCopyCapture# | Description and type Type: string | Default value |
Prop onCut# | Description and type Type: string | Default value |
Prop onCutCapture# | Description and type Type: string | Default value |
Prop onPaste# | Description and type Type: string | Default value |
Prop onPasteCapture# | Description and type Type: string | Default value |
Prop onCompositionEnd# | Description and type Type: string | Default value |
Prop onCompositionEndCapture# | Description and type Type: string | Default value |
Prop onCompositionStart# | Description and type Type: string | Default value |
Prop onCompositionStartCapture# | Description and type Type: string | Default value |
Prop onCompositionUpdate# | Description and type Type: string | Default value |
Prop onCompositionUpdateCapture# | Description and type Type: string | Default value |
Prop onFocus# | Description and type Type: string | Default value |
Prop onFocusCapture# | Description and type Type: string | Default value |
Prop onBlur# | Description and type Type: string | Default value |
Prop onBlurCapture# | Description and type Type: string | Default value |
Prop onChange# | Description and type Type: string | Default value |
Prop onChangeCapture# | Description and type Type: string | Default value |
Prop onBeforeInput# | Description and type Type: string | Default value |
Prop onBeforeInputCapture# | Description and type Type: string | Default value |
Prop onInput# | Description and type Type: string | Default value |
Prop onInputCapture# | Description and type Type: string | Default value |
Prop onReset# | Description and type Type: string | Default value |
Prop onResetCapture# | Description and type Type: string | Default value |
Prop onSubmit# | Description and type Type: string | Default value |
Prop onSubmitCapture# | Description and type Type: string | Default value |
Prop onInvalid# | Description and type Type: string | Default value |
Prop onInvalidCapture# | Description and type Type: string | Default value |
Prop onLoad# | Description and type Type: string | Default value |
Prop onLoadCapture# | Description and type Type: string | Default value |
Prop onError# | Description and type Type: string | Default value |
Prop onErrorCapture# | Description and type Type: string | Default value |