Popularity
1.0
Stable
Activity
0.0
Stable
20
2
1
Programming language: JavaScript
Tags:
Miscellaneous
Code Design
react-find alternatives and similar libraries
Based on the "Miscellaneous" category.
Alternatively, view react-find alternatives based on common mentions on social networks and blogs.
-
redux-auth-patch
Complete token authentication system for react + redux that supports isomorphic rendering. -
react-universal-hooks
:tada: React Universal Hooks : just use****** everywhere (Functional or Class Component). Support React DevTools!
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Promo
surveyjs.io
Do you think we are missing an alternative of react-find or a related project?
README
Elegant, accessible search component for React with recent searches & current location functionality.
Installation
npm i react-find --save
Usage
import React from "react";
import { Search } from "react-find";
import ReactDOM from "react-dom";
import "./styles.css";
function App() {
const data = [
"Midtown West",
"Liberty Island",
"Financial District",
"Meatpacking District",
"Upper West Side",
"Flatiron"
];
return (
<div className="App">
<Search
data={data}
currentLocation={true}
latestSearch={true}
apiKey={API_KEY}
/>
</div>
);
}
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);
API
Prop | Type | Description |
---|---|---|
placeholder |
string | The placeholder text for the input box. |
data |
array | An array of data which acts as the source of data for the dropdown. This prop is required. |
onChange |
function | A function which acts as a callback when the input value is changed. |
onClick |
function | A function which acts as a callback when the dropdown element is clicked. |
currentLocation |
boolean | A boolean value which indicates if current location functionality is enabled. |
latestSearch |
boolean | A boolean value which indicates if latest search functionality is enabled. |
apiKey |
string | If currentLocation is enabled you need to provide the Google API key. |
isFocus |
boolean | A boolean value which indicates if dropdown menus is open. |
Built With
- React - A JavaScript library for building user interfaces
License
MIT Licensed. Copyright (c) George Bardi 2019.
*Note that all licence references and agreements mentioned in the react-find README section above
are relevant to that project's source code only.