0.10.4 • Published 4 years ago

@dccs/react-autocomplete-mui v0.10.4

Weekly downloads
49
License
MIT
Repository
github
Last release
4 years ago

react-autocomplete-mui · travis build npm version

Simple Autocomplete using Material-UI

Demos

https://dccs-it-business-solutions.github.io/react-autocomplete-mui/

Installation

You should install react-autocomplete-mui with npm or yarn:

npm install @dccs/react-autocomplete-mui
or
yarn add @dccs/react-autocomplete-mui

This command will download and install react-autocomplete-mui

This package is only tested with @material-ui/lab@4.0.0-alpha.39!!

How it works

This package is based on the @material-ui/lab/Autocomplete

Uncontrolled Autocomplete with static options

   <Autocomplete<any>
      options={[{id:1, name:"Test 1"}, {id:2, name:"Test 2"}]}
      keyProp={o => o.id}
      textProp={o => o.name}
      onChange={(e, v) => setValue(v)}
    />
/>

Controlled Autocomplete with options loaded async

<Autocomplete
  variant="async"
  value={value}
  onChange={(e, v) => setValue(v)}
  onLoadOptions={(query) => api.queryCountries(query)}
  keyToOption={(key) => api.getCountry(key)}
  keyProp={(o) => o.name}
  textProp={(o) => o.name}
/>

Contributing

License

@dccs/react-autocomplete-mui is MIT licensed

0.10.4

4 years ago

0.10.3

4 years ago

0.10.1

4 years ago

0.10.0

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.4

4 years ago

0.8.3

4 years ago

0.8.1

4 years ago

0.8.2

4 years ago

0.8.0

4 years ago

0.7.1

4 years ago

0.6.5

5 years ago

0.6.4

5 years ago

0.6.3

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago