Skip to content

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

License

Notifications You must be signed in to change notification settings

awran5/react-material-ui-autoComplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Screenshot

Usage Example:

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 (
    <div className="App">
      <MuiAutoComplete
        options={myArray}
        inputValue={inputValue}
        handleChange={handleChange}
        handleSelect={handleSelect}
      />
    </div>
  )
}

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published