logo

English

Search & Autocomplete


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

<LablebSearch />


Done. you have fully powerful search integrated with Lableb's Cloud Servers.
You want to enable `autocomplete`? 

pass `enableAutoComplete` to options

const options: SDKOptions = {
  ...
  autocompleteOptions: {
    enableAutoComplete: true,
  },
  ...
}

PropsDescriptionExamples
onDocumentClickcallback that receive the clicked document in suggestions listonDocumentClick={(doc: any) => console.log('doc clicked: ', doc)}
placeholderstring displayed as placeholderplaceholder={'Search...'}