Overlays
Overlay
Controlled transient-surface primitive for stacking, scrim, focus, and dismissal.Overlay
Playground
Configure the baseline public contract and copy synchronized Vue markup.
MOverlay API
Props, slots, and events are extracted from the current public UI Kit contract.
Props
NameTypeDefault
mode`modal` isolates the background (scrim + scroll lock + focus). `popover` keeps context.'modal' | 'popover''modal'persistentBlock user dismissal (outside/escape); programmatic `v-model` still closes.booleanfalsescrimRender a scrim. Defaults to `true` in modal mode, `false` in popover mode.boolean | undefinedundefinedcloseOnOutsideClose on an outside pointer press.booleantruecloseOnEscapeClose on Escape (only the topmost eligible overlay).booleantrueteleportToTeleport target for the overlay root.string | HTMLElement'#ui-overlay-host'transitionContent transition name; `false` disables it. Consumers usually supply motion.string | falseundefinedSlots
Events
@click:outsidePointerEvent@dismissMOverlayDismissReason@after:entervoid@after:leavevoid