feat(Dropdown): handle manual mode

Resolves #1143
This commit is contained in:
Benjamin Canac
2024-01-03 16:49:00 +01:00
parent 84e6392981
commit 3844714644
3 changed files with 65 additions and 11 deletions

View File

@@ -34,6 +34,12 @@ Use the `mode` prop to switch between `click` and `hover` modes.
:component-example{component="dropdown-example-mode"}
### Manual :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"}
Use a `v-model:open` to manually control the state. In this example, press :shortcut{value="O"} to toggle the dropdown.
:component-example{component="dropdown-example-open"}
## Popper
Use the `popper` prop to customize the popper instance.