<overlay>
A layer above the whole page, like a modal <dialog>. Use it for dialogs and sheets: while it shows, the rest of the app gets no taps.
Usage
src/app/confirm.ts
Import LYNX_ELEMENTS in your component (see Elements).
Attributes
Plus the common attributes, such as id, class and style.
Events
Read the payload from $event.detail (see Handling taps and events).
Plus the common events, such as bindtap.
Children
Give the overlay one child: a view that fills the screen (width: 100%; height: 100%), such as a dimmed backdrop. Put your content inside that view.
The overlay takes no space itself. It sizes only its first child, against the screen, so a bare position: absolute first child collapses to the top-left corner.
Related
- Dialogs and overlays: when to use
<overlay>,LynxPortalor a UI component - LynxPortal: open an overlay from anywhere in the app
- Dialog, Sheet and Bottom Sheet: UI components built on it
