

Every state


default


focus


chip-hover


chip-focus


removed


many


cleared
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "filtered-search" | Id prefix; make it unique on the page. |
| label | string | "Search the shop" | Accessible name of the field. |
| placeholder | string | "Search the shop" | Placeholder text. |
| action | string | "/search" | Where the form goes on submit, with the text as `name` and every chip as a hidden field. |
| name | string | "q" | Form field name of the text. |
| defaultQuery | string | "frying pan" | Starting text in the field. |
| filters | SearchBoxFiltersFilter[] | [ { name: "category", value: "cookware", label: "Cookware", facet: "Category" }, { name: "material", value: "cast-iro… | The filters in force, in the order they were added. |
| filtersLabel | string | "Filters in force" | Accessible name of the chip list. |
| clearLabel | string | "Clear all" | Label of the clear-all button. |
| onFiltersChange | (filters: SearchBoxFiltersFilter[]) => void | – | Called with the filters left, after a chip is removed or all are cleared. |
| className | string | – | Extra classes on the outer element. |
More search boxes
All 6search-box-03 is in UI ProGet UI Pro, €199

