New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@autocomplete/material-ui

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@autocomplete/material-ui

Using the react library to implements autocomplete with material-ui library (the most popular material-design with react)

  • 0.0.17
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
306
decreased by-15.24%
Maintainers
1
Weekly downloads
 
Created
Source

@Autocomplete/material-ui

Using the react library to implements autocomplete with material-ui library (the most popular material-design with react)

@ Deceleration Still under construction

example

import { Autocomplete } from "@autocomplete/material-ui";

const options = [
    "Afghanistan",
    "Albania",
    "Algeria",
    "Andorra",
    "Angola",
    "Antigua",
    "Argentina",
    "Armenia",
    "Australia",
    "Austria",
    "Azerbaijan",
    "Bahamas",
    "Bahrain",
    "Bangladesh",
    "Barbados",
    "Belarus",
    "Belgium",
    "Belize",
    "Benin",
    "Bhutan",
    "Bolivia",
    "Bosnia",
    "Botswana",
    "Brazil",
    "Brunei",
    "Bulgaria",
    "Burkina",
    "Burundi",
    "Cabo",
    "Cambodia",
    "Cameroon",
    "Canada",
    "Central",
    "Chad",
    "Chile",
    "China",
    "Colombia",
    "Comoros",
    "Congo",
    "Cook",
    "Costa",
    "Croatia",
    "Cuba",
    "Cyprus",
    "Czechia",
    "Côte",
    "Democratic",
    "Denmark",
    "Djibouti",
    "Dominica",
    "Dominican",
    "Ecuador",
    "Egypt",
    "El",
    "Equatorial",
    "Eritrea",
    "Estonia",
    "Eswatini",
    "Ethiopia",
    "Faroe",
    "Fiji",
    "Finland",
    "France",
    "Gabon",
    "Gambia",
    "Georgia",
    "Germany",
    "Ghana",
    "Greece",
    "Grenada",
    "Guatemala",
    "Guinea",
    "Guyana",
    "Haiti",
    "Honduras",
    "Hungary",
    "Iceland",
    "India",
    "Indonesi",
];

const getOptions = (q: string) => {
  let query = new RegExp(q);
  return options.filter(o => query.test(o));
};

const Comp = () => {
  const [text, setText] = React.useState("");

  return (
    <Autocomplete
      onChange={q => setText(q)}
      selectOnBlur
      requireMatch
      getOptions={getOptions}
      query={text}
    />
  );
};

FAQs

Package last updated on 04 Mar 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc