React Instantsearch -- Searchbox should have placeholder prop

Would be cool to be able to change the default “Search here…” to whatever we want (e.g…, “Search”, “Search from our gallery…”

Hi @esteban.rotary,

You can use the translations prop available on every widgets to achieve such a thing. You can read this guide to have more information about it: https://community.algolia.com/react-instantsearch/guide/i18n.html.

Also every translations keys supported by a widget are listed under the API section of the community website. For the <SearchBox/> you can have a look here: https://community.algolia.com/react-instantsearch/widgets/SearchBox.html#translations.

Let me know if this help!

Happy coding :slight_smile:

1 Like