mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
feat(SelectMenu): use UInput in search to handle props like icon
Resolves #2021
This commit is contained in:
@@ -200,7 +200,9 @@ props:
|
||||
|
||||
### Search Input
|
||||
|
||||
Use the `search-input` prop to customize the search input. Defaults to `{ placeholder: 'Search...' }`{lang="ts-type"}.
|
||||
Use the `search-input` prop to customize or hide the search input (with `false` value).
|
||||
|
||||
You can pass all the props of the [Input](/components/input) component to customize it.
|
||||
|
||||
::component-code
|
||||
---
|
||||
@@ -219,6 +221,7 @@ props:
|
||||
icon: 'i-lucide-circle-help'
|
||||
searchInput:
|
||||
placeholder: 'Filter...'
|
||||
icon: 'i-lucide-search'
|
||||
items:
|
||||
- label: Backlog
|
||||
icon: 'i-lucide-circle-help'
|
||||
@@ -232,10 +235,6 @@ props:
|
||||
---
|
||||
::
|
||||
|
||||
::tip
|
||||
You can set the `search-input` prop to `false` to hide the search input.
|
||||
::
|
||||
|
||||
### Content
|
||||
|
||||
Use the `content` prop to control how the SelectMenu content is rendered, like its `align` or `side` for example.
|
||||
|
||||
Reference in New Issue
Block a user