{"name":"@reach/combobox","version":"0.7.2","description":"Accessible React Combobox (Autocomplete).","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/combobox"},"scripts":{"build":"yarn clean && cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json","clean":"rm -rf ./dist","compile":"cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json"},"dependencies":{"@reach/auto-id":"^0.7.2","@reach/popover":"^0.7.2","@reach/portal":"^0.7.2","@reach/utils":"^0.7.2","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"},"main":"dist/index.js","module":"dist/combobox.esm.js","typings":"dist/index.d.ts","gitHead":"96cf6c191cca0f2cbcb7ff578f15e289efeda1e2","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/combobox@0.7.2","_nodeVersion":"13.6.0","_npmVersion":"lerna/3.20.2/node@v13.6.0+x64 (linux)","dist":{"integrity":"sha512-OTjRj+BxIy/1UODfHOmVSc3FT95fplxCR1gb9mSiqghAk6unfWceDOvFniBAffceTdVYIGP6W3EsbhmXnSkqcw==","shasum":"e139a87eff70741666269c079fbcdc62bdb7c3e8","tarball":"http://registry-npm.ywwl.com/@reach/combobox/download/@reach/combobox-0.7.2.tgz","fileCount":11,"unpackedSize":226780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGQvpCRA9TVsSAnZWagAAJF4QAJwSDYPnT/TUY6vOIzhB\nSJPuXLweLSFnTCYPK8GLKI10t2ds6Jbjk6vExA7zKDO8sMIFdHkkhN4/Pp0K\nhFccLAWyhVumzcaEF2ZcgzlkqqAf6Iu/vu6uPcxcs96lAFx6Qu99dziSm1co\nCTfbD69xRVpv8Df7gEpYPn6XfPyYd8xqJhiwIIooqdTo+6Jwl2zvSGPZGkCK\nYpw44GHOFPaXCaY7EU9++16q4ShOfgwO5Ns/8tyayXnE+Tj3sgJuF2OwwdWg\nTkRKGabOcASSbZ/sGJiz61H/otOtjLl6oemi7y5M2PMjkhaLCsy80PUOj8p8\nN8YuY8vlrEyZSG4fhMhCO/Th7G0TYumoHPxBVi/0iEOtrqp8SA0GFNiFgjEn\n5U4Qba/S5wTFDm4KcIUtL6L8Cx9u0ZbZqDb6fQnN2vT3176gYnR3h3SmG+15\ngCyotew4ILnMoiimaDVrfliI25W3v/iO5CkXzMWevdp+j5GUdmXKcA7ICpxy\ngHMeFco8EW4oc9TVg/qmwm1pzIFH17hUsRux+jUkMbA+13hsnMYgyX054YVL\ngS9g2aJloLHuFbnFZV9kx3hWs1IJ906r7KziDlQKfAKCGwZ2ptFPrAP+IjJD\nARuCEyHSQDa2irhjIlUth/pQ4fMqe0vACvyCPlhGqDQTuFzEfXIwIFoySmoY\nTUdC\r\n=NAw1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcLfe+RYjPfIsuY3b1Ou/PsNg8K9fg6hoWcPJ8Al0ffwIgIYXHU6Y040+B8eEqpd3qDoePouBbcxdCkjPviRtjhF4="}],"size":62583,"noattachment":false,"key":"/@reach/combobox/-/@reach/combobox-0.7.2.tgz"},"maintainers":[{"email":"chance.strickland@gmail.com","name":"chancestrickland"},{"email":"npm@mjackson.me","name":"mjackson"},{"email":"rpflorence@gmail.com","name":"ryanflorence"}],"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/combobox_0.7.2_1578699752659_0.001298149532199755"},"_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":1578699752805,"_cnpm_publish_time":1578699752805,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}