synapse-react-autocomplete

0.3.6 • Public • Published

React Autocomplete - View Demo

A lightweight autocomplete input component

Install

npm install --save synapse-react-autocomplete

Usage

import Autocomplete from 'synapse-react-autocomplete';

Props

className : string
id : 'string'
labelField : 'string' (default 'label')
valueField : 'string' (default 'value')(optional)
options : [{ labelField : 'string', valueField : 'string' }]
placeholder : 'string'
minimumCharacters : number
maximumCharacters : number
maximumSuggestions : number
clearOnSelect : bool
dropdownPosition : string ('top' or 'bottom')
dropdownHeight : number
showSuggestionsOnEmptyFocus : bool

Styles

Styles are not included by default. Include scss/autocomplete.scss in your local app.scss file to include the base styles.

Development

  • Development - npm run demo
  • Distribution - npm run build

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.6
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.6
    6
  • 0.3.5
    1
  • 0.2.0
    1
  • 0.1.1
    1

Package Sidebar

Install

npm i synapse-react-autocomplete

Weekly Downloads

9

Version

0.3.6

License

none

Last publish

Collaborators

  • synzach
  • kylecesmat