{"name":"@reach/auto-id","version":"0.12.0","description":"Autogenerate IDs to facilitate WAI-ARIA and server rendering.","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/auto-id"},"scripts":{"build":"ts-node --transpile-only ../../scripts/build-package $npm_package_name"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"main":"dist/index.js","module":"dist/auto-id.esm.js","typings":"dist/index.d.ts","dependencies":{"@reach/utils":"0.12.0","tslib":"^2.0.0"},"gitHead":"09eeccda6e4597d21545982c53db5c42beddce6b","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.12.0","_nodeVersion":"14.6.0","_npmVersion":"lerna/3.22.1/node@v14.6.0+x64 (darwin)","dist":{"integrity":"sha512-+tFmIF2yTQRwb0XeMeFPEfYdVuNbsb+zKDz/ComaN5GykStJhdYhyX2qx/wyBF9uSd3tR1F1Ks1G790l1F4njQ==","shasum":"3442956b2f9de2baacb972f2ede613b36f571bbb","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.12.0.tgz","fileCount":11,"unpackedSize":27591,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvvD3CRA9TVsSAnZWagAA4FUP/illK5e4/qxIOsTPlQSa\ngi4H5JSyBUze+15VnYrRDnajCGC9tdUrGkVHryKtbaapA/aEMzCrgZirpSoN\nusyCzaOXP7yATOsZqqtkXwITeG4WQFRTEXs/Gag9Blrlnhmn5efQDzHIXZ+i\nYjPYuExlXeEsMeNczXkR7e+GYm8Tv2Q0UwfrDh8/PGd7qb9egthmv53pq4CA\nn7AzTN0/ZGa2kF4ZSStaofkhHz82iuNL7JS+8NV35zFgWac08IEc8s9R/Wiv\nQl0cMNbD5bY4LSLV/wsiVgryAR/VuK4nD2zLXGpZMirs4h7ZSieMC6SYTOj0\nyEYhJsY/bmZodb2LzG3OkRdsdmdMqtbWHdaxQawszCC5+0iOXSni1hIwpE14\ne20fAcM6T2yATn+4oJpPG+7DL7Y/TletZ7/BKLJkxhAGUyFr/JGQRJvSeRE6\nvOcY9DbkGUmYESdqys9BXgLnrfuUzuI+GH9rOSqTbsRD7ouPYsRki60ysy1v\n6nZc6ZRZT7co2U58lsqZBoUj2u8BtbwTNb6sPnd8iZGzZxgLzWsXs7uxQw2S\nT3RZ1ggDATZ8QwdwSTNc3nlvNS3bqeR1gsp305qrB8X9vapZsIIIUo1xLGlU\n3+wk5RVl0LvBLoYVvLcArFsvkDe+Sk0O9sLWV5VjSHzhllc4Pa5bEfEJcq+z\n/ITU\r\n=rufD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBfV/CaJp4LlOzePn41s2KDyjeE3WIA+3hgQdm1+0bVJAiEA0azu7KZ4XXh6W9F1UhnnVHPSkYgUtA9sJ/hB0yF9+O8="}],"size":5274,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.12.0.tgz"},"_npmUser":{"name":"chancestrickland","email":"chance.strickland@gmail.com"},"directories":{},"maintainers":[{"name":"blainekasten","email":"blainekasten@gmail.com"},{"name":"chancestrickland","email":"chance.strickland@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"ryanflorence","email":"rpflorence@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-id_0.12.0_1606349047418_0.9969478166069441"},"_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":1606349047572,"_cnpm_publish_time":1606349047572,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}