{"name":"@reach/combobox","version":"0.7.1","description":"Accessible React Combobox (Autocomplete).","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/combobox"},"author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","main":"dist/index.js","umd:main":"dist/combobox.umd.production.js","module":"dist/combobox.esm.js","typings":"dist/index.d.ts","scripts":{"build":"cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd"},"dependencies":{"@reach/auto-id":"^0.7.1","@reach/popover":"^0.7.1","@reach/portal":"^0.7.1","@reach/utils":"^0.7.1","escape-regexp":"0.0.1","highlight-words-core":"1.2.2","prop-types":"^15.7.2"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"_id":"@reach/combobox@0.7.1","dist":{"shasum":"ffcd3db3618dd1402544c7a9b02e12bfcbc95bc5","integrity":"sha512-idrCAkrtgJQfzAt8i3SqwnLMkSTM5bHN9X0x2KstSZrMapZ8Pvf5w1FK1xCK9dGD/7aMJ2AynWEbUNGTPIYCoQ==","tarball":"http://registry-npm.ywwl.com/@reach/combobox/download/@reach/combobox-0.7.1.tgz","fileCount":21,"unpackedSize":362542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFoHkCRA9TVsSAnZWagAAZ+cP/j4C3wyS3Yz3eEGMJj8L\nU+LBV5ZUQRzPQSXPKoJYRcrz1fF72dizCZ8USYKn02tpLIQL6dbTQeT7B5OF\n0p6jszt1mDBKMkLTBteEFhP0ZBoMuauQBAe06KhLY7jCQRO1bv5jYRIM58h7\nqaRtuEstNyMoefbrAbB0oZlklJeGXzwDnK262Chrqt2/cfjOVMyDAQdIpT0k\nEElzhVCUzRGKZX2F63TjjqF/KnVrNdl2Rtuyj8omkiC/W+2YBN/3zmXvde/c\nLmWBpQg9riJHBf7zJbK72Sc7f2e3D/DWj0NhzQb5N317syCENtWlWCkzduw3\ndlsFDd4831S0GLs+jWrFBhu8m9jfOD7qeK8d4sFj1amq22J88bvhiX4/zFCC\naEKZ/Uu2huf4vMhnXbNYYxLjZFny4Ff/6ObRmlBA9wqQWHy0nf2NOocj9Uo+\noVFs82j6emX7fXSZOeUB1XJys7gfbv6kMnCIjvreXRGFuGOGnIYXJNAuvMIC\n2X3U9mm9Cv/J8sYMafkiz3WzO9OnUWipw9QHjkUhYYS1UVu7GXyoAH1oXzsL\nEm178ZBW0BzzmZHw0SmYiCcXEZsNWXSJftMO7FZTXYbzNN9dpYTGHJtt4Bic\nsr5w7p47bF9tXSus3rKONsvTRdPDWFi+UZEvttRTwplxmgcwhl3tLChnpZ0c\nV/rk\r\n=vnih\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5f3nb/JffYtEtwj3betNj9W2knTSlb5dxmYg8PhVw+wIhAIsCp1jDl8yptqMrQFJECNc5wd599mAajZjWbZobgrfx"}],"size":97035,"noattachment":false,"key":"/@reach/combobox/-/@reach/combobox-0.7.1.tgz"},"maintainers":[{"email":"chance.strickland@gmail.com","name":"chancestrickland"},{"email":"npm@mjackson.me","name":"mjackson"},{"email":"rpflorence@gmail.com","name":"ryanflorence"}],"_npmUser":{"name":"chancestrickland","email":"chance.strickland@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/combobox_0.7.1_1578533347947_0.4219117410767661"},"_hasShrinkwrap":false,"readme":"# @reach/combobox\n\n[![Stable release](https://img.shields.io/npm/v/@reach/combobox.svg)](https://npm.im/@reach/combobox) ![MIT license](https://badgen.now.sh/badge/license/MIT)\n\n[Docs](https://reach.tech/combobox) | [Source](https://github.com/reach/reach-ui/tree/main/packages/combobox) | [WAI-ARIA](https://www.w3.org/TR/wai-aria-practices-1.2/#combobox)\n\nAccessible combobox (autocomplete or autosuggest) component for React.\n\nA combobox is the combination of an `<input type=\"text\" />` and a list. The list is designed to help the user arrive at a value, but the value does not necessarily have to come from that list. Don't think of it like a `<select />`, but more of an `<input type=\"text\" />` with some suggestions. You can, however, validate that the value comes from the list, that's up to your app.\n\n```js\nimport {\n\tCombobox,\n\tComboboxInput,\n\tComboboxPopover,\n\tComboboxList,\n\tComboboxOption,\n\tComboboxOptionText,\n} from \"@reach/combobox\";\nimport \"@reach/combobox/styles.css\";\n\nfunction Example() {\n\treturn (\n\t\t<div>\n\t\t\t<Combobox>\n\t\t\t\t<ComboboxInput aria-labelledby=\"demo\" />\n\t\t\t\t<ComboboxPopover>\n\t\t\t\t\t<ComboboxList aria-labelledby=\"demo\">\n\t\t\t\t\t\t<ComboboxOption value=\"Apple\" />\n\t\t\t\t\t\t<ComboboxOption value=\"Banana\" />\n\t\t\t\t\t\t<ComboboxOption value=\"Orange\" />\n\t\t\t\t\t\t<ComboboxOption value=\"Pineapple\" />\n\t\t\t\t\t\t<ComboboxOption value=\"Kiwi\" />\n\t\t\t\t\t</ComboboxList>\n\t\t\t\t</ComboboxPopover>\n\t\t\t</Combobox>\n\t\t</div>\n\t);\n}\n```\n","publish_time":1578533348205,"_cnpm_publish_time":1578533348205,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}