feat(SelectMenu): add empty slot when no options

Resolves #1089
This commit is contained in:
Benjamin Canac
2023-12-12 16:18:15 +01:00
parent 781365a5ed
commit 5d1919a538
4 changed files with 31 additions and 0 deletions

View File

@@ -232,6 +232,18 @@ Use the `#option-create` slot to customize the content displayed when the `creat
An example is available in the [Create option](#create-option) section.
::
### `empty`
Use the `#empty` slot to customize the content displayed when there is no options. Defaults to `No options.`.
::component-example
---
component: 'select-menu-example-empty-slot'
componentProps:
class: 'w-full lg:w-48'
---
::
## Props
:component-props