logo

English

Search Results

Simply drop the search results component anywhere you like in your application

import { LablebResults } from '@lableb/react-sdk';


<LablebResults />


This container take the full width of its parent. You can register a callback to know when some result get clicked by the user so you can provide routing of your own, or any side effect of its kind.
PropsDescriptionExamples
onDocumentClickcallback that receive the clicked document in search resultsonDocumentClick={(doc: any) => console.log('doc clicked: ', doc)}
onTagClickcallback that receive the clicked tagonTagClick={(tag) => console.log({ tag })}