

Every state


default


focus


scope-focus


filled


submit-hover


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "scoped-search" | Id prefix; make it unique on the page. |
| label | string | "Search" | Accessible name of the field. |
| placeholder | string | "What are you looking for?" | Placeholder text. |
| action | string | "/search" | Where the form goes on submit. |
| name | string | "q" | Form field name of the text. |
| scopeName | string | "in" | Form field name of the scope. |
| scopeLabel | string | "Search in" | Accessible name of the scope select. |
| scopes | SearchBoxScopedScope[] | [ { value: "all", label: "All categories" }, { value: "cookware", label: "Cookware" }, { value: "knives", label: "Kni… | The scopes, in order; the first is the widest ("All categories"). |
| defaultScope | string | – | Starting scope (a scope's value). |
| defaultQuery | string | – | Starting text in the field. |
| submitLabel | string | "Search" | Accessible name of the submit button. |
| disabled | boolean | – | Disables it. |
| className | string | – | Extra classes on the outer element. |

