Forms
Search field
The page search bar and the compact finder with its filter.
import { EcoSearchField } from "vue-ecosphere"
Page search
Type and press Enter; Escape or the clear button empties it.
Last search: ""
Finder
Sits inside a toolbar and carries its own filter button.
Filter applied: false
API
| Name | Type | Default | Description |
|---|---|---|---|
v-model | string | "" | The query. The clear button shows only while it has a value (has-value). |
variant | "search" | "finder" | "search" | Full-width page bar, or the compact toolbar finder. |
placeholder | string | — | What can be searched. |
label | string | — | Accessible name; falls back to the placeholder. |
clearLabel | string | "Clear search" | Name and tooltip of the clear button. |
filter | boolean | true | Finder only: show the filter button (filb). |
filterActive / filterOpen | boolean | false | Finder only: a filter is applied (is-on) / its menu is open. |
filterLabel | string | "Filter" | Accessible name of the filter button. |
@search | (value: string) => void | — | Enter in the field. |
@clear / @filter | () => void | — | Clear button (or Escape) / filter button. |
#filter | slot | — | Replace the filter button, e.g. with a menu trigger. |
attributes | id, role, aria-*, listeners | — | Go to the <input> (class and style stay on the wrapper), so it can be a combobox's input. A keydown handler you pass runs first; preventDefault() keeps Enter or Escape for you. |