DropdownMenu | DropdownMenu
DropdownMenu#
Description#
- Root component that provides the shared state of the dropdown menu: open, close, focus management and trigger registration.
- Renders nothing on its own; wraps content and exposes context via
provide.
Props#
open(boolean) — Controls the open state from outside withv-model:open. Default:undefined(internal control).
Emits#
update:open— Emitted with the new boolean value when the open state changes.
Usage#
| |
Notes#
- Without
v-model:open, the menu opens and closes internally. - Focus is returned to the element that had focus when the menu opened, not always to the trigger.