You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/content/2.components/select-menu.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ Learn how to customize icons from the [Select](/components/select#icon) componen
85
85
86
86
Use the `searchable` prop to enable search.
87
87
88
-
Use the `searchable-placeholder` prop to set a different placeholder.
88
+
Use the `searchable-placeholder` prop to set a different placeholder or globally through the `ui.selectMenu.default.searchablePlaceholder.label` config. Defaults to `Search...`.
89
89
90
90
This will use Headless UI [Combobox](https://headlessui.com/v1/vue/combobox) component instead of [Listbox](https://headlessui.com/v1/vue/listbox).
91
91
@@ -258,6 +258,8 @@ componentProps:
258
258
259
259
Use the `#option-empty` slot to customize the content displayed when the `searchable` prop is `true` and there is no options. You will have access to the `query` property in the slot scope.
260
260
261
+
You can also configure this globally through the `ui.selectMenu.default.optionEmpty.label` config. The token `{query}` will be replaced by `query` property. Defaults to `No results for "{query}".`.
0 commit comments