You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UiOverlay is an overlay component, best used as a base component for other components that should behave as an overlay. Eg Menus, Dialogs, Sheets
Features ✨
Teleports to anywhere in the DOM
Renders no wrapper element
Traps focus within itself
Keeps track of all active overlays
Focuses on next active overlay when closed
Supports transition
Props ⚙
Name
Type
Default
Description
modelValue
Boolean
undefined
Used internally by v-model
disabled
Boolean
undefined
This prop closes the <UiOverlay> if openedm and disallows any attempt to open
to
String
'body'
A valid querySelector to render the overlay. Throws an error if an invalid value is recieved
restoreScroll
Boolean
true
Use this if you want the previous window scroll positions to be restored when the <UiOverlay> is closed
restoreFocus
Boolean
true
Use this if you want to save the activeElement before the UiOverlay is opened, so the saved activeElement can be focused on when the UiOverlay is closed