feat(SelectMenu): allow control of search query

Resolves #1174
This commit is contained in:
Benjamin Canac
2024-01-03 15:11:20 +01:00
parent e8f573b6bb
commit f735db04d6
3 changed files with 52 additions and 13 deletions

View File

@@ -146,6 +146,18 @@ componentProps:
---
::
### Control the query :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"}
Use a `v-model:query` to control the search query.
::component-example
---
component: 'select-menu-example-search-query'
componentProps:
class: 'w-full lg:w-48'
---
::
## Creatable
Use the `creatable` prop to enable the creation of new options when the search doesn't return any results (only works with `searchable`).