Add placeholder to EasySearch

How can i add placeholder to EasySearch?

{{> EasySearch.Input index=cvsIndex }}

I have read the docs, but i can’t figure out where to add the snippet on that page attributes: Object containing input attributes (e.g. { placeholder: "Search..." })

You could set the placeholder in an object returned by a helper. So something like:

  searchAttributes() {
    return {
      placeholder: 'Some placeholder ...',


{{> EasySearch.Input index=cvsIndex attributes=searchAttributes}}
1 Like

That works. Thank you @hwillson !