chore(InputMenu): handle async search with search prop

This commit is contained in:
Benjamin Canac
2024-01-05 17:30:29 +01:00
parent e4b8fffc32
commit 520624bd64
3 changed files with 55 additions and 1 deletions

View File

@@ -126,6 +126,20 @@ componentProps:
---
::
### Async search
Pass a function to the `search` prop to customize the search behavior and filter options according to your needs. The function will receive the query as its first argument and should return an array.
Use the `debounce` prop to adjust the delay of the function.
::component-example
---
component: 'input-menu-example-search-async'
componentProps:
class: 'w-full lg:w-48'
---
::
## Popper
Use the `popper` prop to customize the popper instance.