Socket
Socket
Sign inDemoInstall

react-search-bar-allreact

Package Overview
Dependencies
5
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-search-bar-allreact

For off search bar with autosuggest so it can work with react 16


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

A general-purpose search bar, built in React. View the demo.

Development

To run the dev server:

npm start

To run tests and lint:

npm run check

Props

PropTypeRequiredDescription
autoFocusbooleanIf true, focuses the input when the component loads
delaynumberThe number of milliseconds to wait after the last key stroke before calling onChange
onChangefunctionCalled when input changes
onClearfunctionCalled when suggestions are cleared
onSearchfunction1Called when clicking the search button or enter (presumes that search button is available)
onSelectionfunctionCalled when selecting a suggestion
renderClearButtonbooleanFlag indicating whether to display the clear button
renderSearchButtonbooleanFlag indicating whether to display the search button
styleobjectStyle object
suggestionRendererfunctionFunction to render suggestions
suggestionsarray<string>Array of suggestions

Also accepts supported HTML attributes for the <input> element.

1 Only when renderSearchButton is true

License

MIT

Keywords

FAQs

Last updated on 10 Dec 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc