This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@nuclia/widget

1.1.1 • Public • Published

Nuclia widget

The Nuclia widget allows to embed a ready-to-use search box in your website or web application.

Usage as a web component

Copy/paste the following snippet in your HTML code:

<script src="https://cdn.nuclia.cloud/nuclia-video-widget.umd.js"></script>
<nuclia-search-bar
  knowledgebox="<YOUR-KB-ID>"
  zone="europe-1"
  features="filter,permalink"></nuclia-search-bar>

<nuclia-search-results></nuclia-search-results>

Usage as Svelte components

You need to install the following dependencies:

npm install @nuclia/widget @nuclia/core @nuclia/prediction rxjs@^7.5.2 date-fns sass

Then, you can use the components in your Svelte code:

<script lang="ts">
  import { NucliaSearchBar, NucliaSearchResults } from '@nuclia/widget';
</script>

<NucliaSearchBar
  zone="europe-1"
  knowledgebox="<YOUR-KB-ID>"
  lang="en"
  placeholder="Search"
  features="filter,suggestions,permalink" />

<NucliaSearchResults />

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @nuclia/widget

      Weekly Downloads

      386

      Version

      1.1.1

      License

      MIT

      Unpacked Size

      266 kB

      Total Files

      211

      Last publish

      Collaborators

      • ebrehault
      • ramon-nuclia
      • ramonnb