@springernature/global-autocomplete

7.0.0 • Public • Published

Autocomplete component

Basic autocomplete function that listens to key events on a text input and fetches suggestions from a specified endpoint.

Branding

The global-autocomplete component currently uses the DEFAULT brand only.

// Inlcude this with your settings
@import '@springernature/global-autocomplete/scss/10-settings/default';

// Include this with your other components
@import '@springernature/global-autocomplete/scss/50-components/autocomplete';

Example usage

Please see contents of demo/ folder for sample client JS.

A full handlebars demo is also in the demo folder, but following is the only HTML the component actually requires:

<input type="text" autocomplete="off" class="c-autocomplete" aria-expanded="false" data-component-autocomplete>

/@springernature/global-autocomplete/

    Package Sidebar

    Install

    npm i @springernature/global-autocomplete

    Weekly Downloads

    3,126

    Version

    7.0.0

    License

    MIT

    Unpacked Size

    58.4 kB

    Total Files

    13

    Last publish

    Collaborators

    • ndv3997
    • sndigital
    • rseidelsohn
    • testingsabrina
    • roshandeorukhkar-sn
    • benjclark
    • sonniesedge
    • rlau
    • dotcode
    • joseluisbolos
    • hollsk
    • moddular
    • jpw
    • nickcall
    • howlingmad
    • davidpauljunior
    • morgaan