{"id":17973935,"url":"https://github.com/appgeist/react-select-material-ui","last_synced_at":"2025-06-13T11:07:59.201Z","repository":{"id":35047652,"uuid":"200422062","full_name":"appgeist/react-select-material-ui","owner":"appgeist","description":"An outlined Material-UI input component based on react-select, inspired by the Autocomplete section in Material-UI docs","archived":false,"fork":false,"pushed_at":"2022-12-04T05:55:51.000Z","size":627,"stargazers_count":14,"open_issues_count":9,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-31T09:49:32.682Z","etag":null,"topics":["autocomplete","autocompletion","material-design","material-ui","react","react-select","ui-component"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appgeist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-03T21:22:07.000Z","updated_at":"2023-12-01T07:25:03.000Z","dependencies_parsed_at":"2023-01-15T12:43:23.886Z","dependency_job_id":null,"html_url":"https://github.com/appgeist/react-select-material-ui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appgeist%2Freact-select-material-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appgeist%2Freact-select-material-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appgeist%2Freact-select-material-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appgeist%2Freact-select-material-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appgeist","download_url":"https://codeload.github.com/appgeist/react-select-material-ui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appgeist%2Freact-select-material-ui/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259172159,"owners_count":22816514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autocomplete","autocompletion","material-design","material-ui","react","react-select","ui-component"],"created_at":"2024-10-29T17:05:10.900Z","updated_at":"2025-06-13T11:07:59.183Z","avatar_url":"https://github.com/appgeist.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @appgeist/react-select-material-ui\n\n[![NPM version][npm-image]][npm-url]\n[![License][license-image]][license-url]\n\n![AppGeist React-Select-Material-UI](https://user-images.githubusercontent.com/581999/62422816-16dc7200-b6c1-11e9-940d-3638c26bdf93.png)\n\nAn outlined [Material-UI](https://material-ui.com) input component based on [react-select](https://react-select.com/home), inspired by the [Autocomplete section in Material-UI docs](https://material-ui.com/components/autocomplete).\n\nSupports [react-select/async](https://react-select.com/async) and [react-select/creatable](https://react-select.com/creatable).\n\n## Usage\n\n```js\nimport React, { Fragment, useState } from \"react\";\nimport Select from \"@appgeist/react-select-material-ui\";\n\nconst KINGDOMS = [\n  { value: \"AS\", label: \"Astur\" },\n  { value: \"FA\", label: \"Fargos\" },\n  { value: \"LE\", label: \"Laeden\" },\n  { value: \"TH\", label: \"Therras\" },\n  { value: \"VE\", label: \"Vessar\" }\n];\n\nexport default () =\u003e {\n  const [kingdom, setKingdom] = useState(null);\n\n  return (\n    \u003cFragment\u003e\n      \u003ch1\u003eFictional places:\u003c/h1\u003e\n      \u003cSelect\n        id=\"place\"\n        label=\"Kingdom\"\n        placeholder=\"Select a kingdom\"\n        options={KINGDOMS}\n        value={kingdom}\n        onChange={setKingdom}\n        isClearable\n        helperText=\"Where would you like to live?\"\n      /\u003e\n    \u003c/Fragment\u003e\n  );\n};\n```\n\n## Component props\n\n- id (string);\n- label (string);\n- margin (string, one of 'none', 'normal' or 'dense')\n- error (string);\n- helperText (string);\n- isAsync (bool);\n- isCreatable (bool);\n- all other props are forwarded to react-select component - see [the API docs](https://react-select.com/props).\n\n## Async/creatable select\n\n- Providing an `{ isAsync: true }` prop a will generate an [async](https://react-select.com/async) select;\n- Providing an `{ isCreatable: true }` prop a will generate a [creatable](https://react-select.com/creatable) select;\n- `isAsync` and `isCreatable` can be combined.\n\n## Replacing react-select components\n\nYou can augment the layout and functionality by providing [custom react-select components](https://react-select.com/components) in a `components` property like so:\n\n```js\nconst Option = props =\u003e {\n  // custom Option implementation\n};\n\nconst ClearIndicator = props =\u003e {\n  // custom ClearIndicator implementation\n};\n\nreturn (\n  \u003cSelect\n    id=\"place\"\n    label=\"Kingdom\"\n    placeholder=\"Select a kingdom\"\n    options={KINGDOMS}\n    value={kingdom}\n    onChange={setKingdom}\n    isClearable\n    helperText=\"Where would you like to live?\"\n    components={{\n      Option,\n      ClearIndicator\n    }}\n  /\u003e\n);\n```\n\n## Peer dependencies\n\n- react (\u003e 16.9);\n- prop-types;\n- clsx;\n- @material-ui/core;\n- @material-ui/styles.\n\n## License\n\nThe [ISC License](LICENSE).\n\n[npm-image]: https://img.shields.io/npm/v/@appgeist/react-select-material-ui.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/@appgeist/react-select-material-ui\n[license-image]: https://img.shields.io/npm/l/@appgeist/react-select-material-ui.svg?style=flat-square\n[license-url]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappgeist%2Freact-select-material-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappgeist%2Freact-select-material-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappgeist%2Freact-select-material-ui/lists"}