Intermix Search API Extension
npm install intermix-searchThis API extension provides a central search functionality and returns search items formated in tailwindCSS
The following functions are brought to the Pilet API.
The provided library only brings API extensions for pilets to a Piral instance.
For the setup of the library itself you'll need to import createLinkApi from the piral-navlink package.
``ts`
import { createIntermixSearchApi } from "piral-navlink";
The integration looks like:
`ts`
const instance = createInstance({
// important part
extendApi: [createIntermixSearchApi()]
// ...
});
Get Search Results based on the query string
``
getSearchResults(query: string): ComponentType[];
```
piral.getSearchResults(
MIT