You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

@blaze-react/autocomplete

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blaze-react/autocomplete

Autocomplete component allows users to quickly find and select one from suggested options.

0.7.0
latest
Version published
Maintainers
10
Created

Description

Autocomplete component allows users to quickly find and select one from suggested options.

Usage

const data = {
  keyValue: 'name',
  filterBy: ['name', 'description'],
  data: [
    {
        id: 1,
        name: 'Laravel',
        description: 'Lorem ipsum dolor.'
    },
    {
        id: 2,
        name: 'React',
        description: 'Aliquam tincidunt.'
    },
    {
        id: 3,
        name: 'Adonis',
        description: 'Vestibulum auctor.'
    }
  ]
};

<Autocomplete data={data} selected={(selected) => {}}/>

API

Autocomplete can receive a number of props as follow:
NAMETYPEDEFAULT
dataObject{}
placeholderString'Search'
selectedFunction() => {}
childrensingle/array of nodesempty

FAQs

Package last updated on 26 Mar 2021

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