To use Layer, you can import the component from the @dhis2/ui library
import { Layer } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| children | node | |||
| className | string | |||
| dataTest | string | 'dhis2-uicore-layer' |
||
| disablePortal | boolean | Disable the Portal, useful for nesting layers | ||
| level | number │ string | 'auto' |
Z-index level | |
| position | 'absolute' │ 'fixed' | 'fixed' |
||
| translucent | boolean | Adds a semi-transparent background | ||
| onBackdropClick | function | Backdrop click handler | ||
| onClick | custom | Click handler - DEPRECATED |