Hi there all you good people! :raised_hands: I was...
# community-help
n
Hi there all you good people! 🙌 I was wondering if anyone has an idea if there is some neat way of achieving the following. I have a Nextjs project and am using
react-instantsearch-dom
and Typesense of course. Moreover I am sing the Hits component. Instead of showing the whole text of the hit I would like to just show an excerpt and truncate before and after with ellipsis (…) (see screenshot). I would like to avoid to use some JS method like slice, but maybe I would have to. Any ideas or similar experiences out there?
j
There’s a Snippet widget that Instantsearch provides that should do this for you
👍 1