algolia / docsearch

:blue_book: The easiest way to add search to your documentation.
https://docsearch.algolia.com
MIT License
3.97k stars 384 forks source link

hitComponent #1809

Closed RayShineHub closed 3 months ago

RayShineHub commented 1 year ago

https://github.com/algolia/docsearch/blob/d81016b110aa0818231b6e4b7b96d2007d345b05/packages/docsearch-react/src/Hit.tsx#L11

@Whitespace
Can you implement receiving custom jump events here instead of <a>

shortcuts commented 1 year ago

hey, you should be able to provide your own hit component so you can customize the behavior: https://docsearch.algolia.com/docs/api/#hitcomponent

RayShineHub commented 1 year ago

hey, you should be able to provide your own hit component so you can customize the behavior: https://docsearch.algolia.com/docs/api/#hitcomponent

hey @shortcuts Can you provide an example of a custom hitcomponent based on a vue project

thank u

randombeeper commented 3 months ago

@RayShineHub I know it's obviously been a long time here since your issue was logged. We're not able to provide sample code in a vue project. However, if you still have Algolia related questions, you can begin to utilize our Discord at https://alg.li/discord.