New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@alphasquad/predictive-search

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alphasquad/predictive-search

Predective search.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
3
Created
Source

Available Scripts

Search field with predictive dropdown.

npm i @alphasquad/predictive-search

OR

yarn add @alphasquad/predictive-search

Demo

How to use?

import Horizontal from "@alphasquad/predictive-search";

<PredictiveSearch
    keyword={text} // keyword that is being taken in getKeyword
    getKeyword={getKeyword} // for getting the value of input field
    results={results} // Array of string.
    placeholder="Search..."
    wrapperClass="wrapperClass"
/>

Props

PropsTypesDescriptionRequiredDefault
keywordstringThe keyword that is entered by the user in input fieldtrue-
getKeywordMethodThe method to get text from input field.truefalse
wrapperClassstringclass will be applied on the wrapping divfalse-
resultsarray of stringThis should be an array of string. These results will be displayed below input section.true-
placeholderstringPlaceholder text in input fieldfalse-

Keywords

Predictive

FAQs

Package last updated on 25 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts