Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/awran5/react-material-ui-autocomplete

Autocomplete Component built with Material-UI. Support accessibility and works with keyboard, screen readers, and touch screens.
https://github.com/awran5/react-material-ui-autocomplete

autocomplete keyboard material-ui react react-autosuggest react-component

Last synced: 20 days ago
JSON representation

Autocomplete Component built with Material-UI. Support accessibility and works with keyboard, screen readers, and touch screens.

Awesome Lists containing this project

README

        

# Material-UI Autocomplete Component

Simple Autocomplete component built with Material-UI. Support accessibility and works with keyboard, screen readers, and touch screens.

### Suppored keys

- `UP`
- `Down`
- `ESC`
- `ENTER`
- `Mouse clicks`

### Dependencies

- [Material-UI](https://material-ui.com/) v4.11.0
- React version supports [Hooks](https://reactjs.org/docs/hooks-intro.html)

![Screenshot](./screenshot.gif)

### Usage Example:

```jsx
import MuiAutoComplete from "./components/MuiAutoComplete"

const App = () => {
// State
const [inputValue, setInputValue] = useState("")

// Handle Change
const handleChange = e => setInputValue(e.target.value)

// Handle Select
const handleSelect = value => setInputValue(value)

return (




)
}
```

### [Demo](https://react-material-ui-autocomplete.vercel.app)

### [codeSandbox](https://codesandbox.io/s/react-material-ui-autocomplete-2xzponvj3n)