aymeric-giraudet / svelte-algolia-instantsearch

A Svelte component library for Algolia InstantSearch.js
https://svelte-algolia-instantsearch.vercel.app/
MIT License
52 stars 12 forks source link

Request: Make more searchBox config options available #22

Closed knd775 closed 1 year ago

knd775 commented 1 year ago

It'd be great if options like showReset, showSubmit, and showLoadingIndicator were exposed by the component. Additionally, it'd be very nice if we could control the widget templates (slots would be ideal, but html templates would be better than nothing). Currently we are making this all work through the cssClasses, but it's rather messy.

knd775 commented 1 year ago

I just realized this is all already implemented, but not documented. If anyone else is looking for this, take a look at the code here: https://github.com/aymeric-giraudet/svelte-algolia-instantsearch/blob/5f0998a536b9db9b33b3d65bd4da9c80bb8d3195/src/lib/widgets/SearchBox.svelte#L126-L170