{"name":"@reach/auto-id","version":"0.15.0","description":"Autogenerate IDs to facilitate WAI-ARIA and server rendering.","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","sideEffects":["*.css"],"repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/auto-id"},"dependencies":{"@reach/utils":"0.15.0","tslib":"^2.1.0"},"devDependencies":{"react":"^17.0.2","react-dom":"^17.0.2"},"peerDependencies":{"react":"^16.8.0 || 17.x","react-dom":"^16.8.0 || 17.x"},"main":"dist/reach-auto-id.cjs.js","module":"dist/reach-auto-id.esm.js","types":"dist/reach-auto-id.cjs.d.ts","eslintIgnore":["node_modules","dist"],"gitHead":"1449650359c119c1afe25973aa7584e09e2c88bc","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.15.0","_nodeVersion":"15.14.0","_npmVersion":"lerna/3.22.1/node@v15.14.0+x64 (linux)","dist":{"integrity":"sha512-iACaCcZeqAhDf4OOwJpmHHS/LaRj9z3Ip8JmlhpCrFWV2YOIiiZk42amlBZX6CKH66Md+eriYZQk3TyAjk6Oxg==","shasum":"f46afebfc140b2099b95c7aec1f049d167d3833d","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.15.0.tgz","fileCount":9,"unpackedSize":16527,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbURzCRA9TVsSAnZWagAAy+QQAKF4sGJ8EMdY2ntLBjz7\nNMkPAllVvK9luAySU0yeMp/8H+dIo2Ad4xXL744/6gRzluxeOUIWTQnSGw08\nKnvur5N7BET0tsJddnZgByFeZNNoqSxilx0lEnV4R5ElnPP0ywSGOdE9kcqg\nxrE3zf1HkVE/I7K8c/Vqp/EoTtizkgi0l3mm3Wnxs00pyD959nI9MQS4UUyg\nD9WPAwjCV7LXY+YG0sLFTlk89Lb5hdWGRPAPZ9Cnzm7hjmazk/715exiO+Tq\nGPjGD/QEDH0Et8qpQpr3zVmwuhYSe6tsu5OF0z0xGUQkiG0PFRUduWeQZ+0y\nFIl5BS+DGn+66lMU/fu+R8QHDeEZqVxGWUFYtrTpEcuc0VqQg3/Xpvo23tHo\n8jJxAlWtIl19eafCOrK50qJRZCZKMER+SJEMrQBkQfYGTnlbTE3z2B5IJEhh\noLpCndDyrSIPHfdMFJ3l3tb05fNbMXYPBEQv4Htdm9WpfWx30Y2iwS6C4viI\nemlAE+icYh/uR0AJnX+KmXAx6OvAo1pjVsY1Eips1cPNyKENvhY/B1SfgQTE\n8w+nl6HYMyiu+1pnLnp6bT5vJvryq/hDcC2CLJF/cVZNUr5K1s34ENOF2c3/\niv66r4T/E41+au/Z0m0YO9lL8F6PSEUxvYDHv+JqMgISX9msf+y3u8T5/oHS\nLQw7\r\n=QG/k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPark1xKgrup0QptUOkI3n07DhRCM+k7t8eauP+Va/7wIhAL+4znC48GYJWJSCKOA6hEySpEbtOrvTkTetEduBI7NR"}],"size":3959,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.15.0.tgz"},"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"chancestrickland","email":"chance.strickland@gmail.com"},{"name":"blainekasten","email":"blainekasten@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-id_0.15.0_1617773683190_0.09021525333670732"},"_hasShrinkwrap":false,"readme":"# @reach/auto-id\n\n[![Stable release](https://img.shields.io/npm/v/@reach/auto-id.svg)](https://npm.im/@reach/auto-id) ![MIT license](https://badgen.now.sh/badge/license/MIT)\n\n[Docs](https://reach.tech/auto-id) | [Source](https://github.com/reach/reach-ui/tree/main/packages/auto-id)\n\nAutogenerate IDs to facilitate WAI-ARIA and server rendering.\n\nA string can be supplied as an argument to be `useId` in lieu of the auto-generated ID. This is handy for accepting user-provided prop IDs that need to be deterministic.\n\n```jsx\nimport { useId } from \"@reach/auto-id\";\n\nfunction FormField(props) {\n\tconst id = useId(props.id);\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<label htmlFor={id}>{props.label}</label>\n\t\t\t<input type={props.type} name={props.name} id={id} />\n\t\t</React.Fragment>\n\t);\n}\n```\n","publish_time":1617773683337,"_cnpm_publish_time":1617773683337,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}