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 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 color# | 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# |