Seed Bible extension API (v1.19.0) / seed-bible/components / useModalLayer
Function: useModalLayer()
function useModalLayer(
containerRef: ElementRef,
options?: ModalLayerOptions,
): void;Makes an element behave as a modal layer: focus moves into it when it opens and back to where it was when it closes, Tab stays inside, and Escape calls onEscape. Layers stack: only the one opened last takes Tab and Escape, so a dialog opened over a sheet (or a tour tip over either) is the one the keyboard reaches.
Parameters
| Parameter | Type |
|---|---|
containerRef | ElementRef |
options? | ModalLayerOptions |
Returns
void