Skip to content
Scoped search, light
Light
Scoped search, dark
Dark

Every state

  • Scoped search, default, light
    Scoped search, default, dark

    default

  • Scoped search, focus, light
    Scoped search, focus, dark

    focus

  • Scoped search, scope-focus, light
    Scoped search, scope-focus, dark

    scope-focus

  • Scoped search, filled, light
    Scoped search, filled, dark

    filled

  • Scoped search, submit-hover, light
    Scoped search, submit-hover, dark

    submit-hover

  • Scoped search, disabled, light
    Scoped search, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"scoped-search"Id prefix; make it unique on the page.
labelstring"Search"Accessible name of the field.
placeholderstring"What are you looking for?"Placeholder text.
actionstring"/search"Where the form goes on submit.
namestring"q"Form field name of the text.
scopeNamestring"in"Form field name of the scope.
scopeLabelstring"Search in"Accessible name of the scope select.
scopesSearchBoxScopedScope[][ { value: "all", label: "All categories" }, { value: "cookware", label: "Cookware" }, { value: "knives", label: "Kni…The scopes, in order; the first is the widest ("All categories").
defaultScopestring–Starting scope (a scope's value).
defaultQuerystring–Starting text in the field.
submitLabelstring"Search"Accessible name of the submit button.
disabledboolean–Disables it.
classNamestring–Extra classes on the outer element.

More search boxes

All 6

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans