Popover | Popover
Popover#
Description#
- Root component for a popover with content: a small form, a selector, some options hanging from a button. It renders no wrapper element — its slot is rendered directly.
Props#
open(boolean) — Controls the open state from outside viav-model:open. Without this property, the popover opens and closes internally. Default:undefined.
Emits#
update:open— Emitted when the open state changes, receiving the new boolean value.
Usage#
| |
Notes#
- The open state is reactive and shared with child components via
provideandinject. - When closing with
returnFocus: true, focus returns to the element that had focus when the popover opened.