Installation

You can install the Nosto Autocomplete library via npm:

npm install @nosto/autocomplete

The Nosto Autocomplete library can be imported and used in various ways, depending on your preferred framework or template language. Some of the supported import methods include:

FrameworkImport Statement

Base

import { autocomplete } from "@nosto/autocomplete"

Mustache

import { autocomplete, fromMustacheTemplate, defaultMustacheTemplate } from "@nosto/autocomplete/mustache"

Liquid

import { autocomplete, fromLiquidTemplate, defaultLiquidTemplate } from "@nosto/autocomplete/liquid"

Preact

import { autocomplete, Autocomplete } from "@nosto/autocomplete/preact"

React

import { autocomplete, Autocomplete } from "@nosto/autocomplete/react"

Choose the import method that aligns with your project's requirements and technology stack.

❗Do not combine multiple imports as it will fetch multiple bundles.❗

Last updated