{"name":"@reach/auto-id","version":"0.4.0","description":"Autogenerate IDs to facilitate WAI-ARIA and server rendering.","main":"index.js","module":"es/index.js","scripts":{"build":"node ../../shared/build-package"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","gitHead":"0f3d2c7e530cd80e1d1bd338182ac89a3ba23999","_id":"@reach/auto-id@0.4.0","_nodeVersion":"13.0.1","_npmVersion":"lerna/3.17.0/node@v13.0.1+x64 (linux)","dist":{"integrity":"sha512-tWjH+lxmGONcpbxxKHGMUZ2mw+GVvS9YE2eYV2AH+xxcf6b/Q+KC1FlBtS7eYw9y7tONvTAivVVyZSz86a8HKw==","shasum":"7241b4f26092b65dd43c325c278a82efd210ad02","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.4.0.tgz","fileCount":6,"unpackedSize":3468,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsKoaCRA9TVsSAnZWagAAk74QAJW5mTwtd6z9pkn66W8N\ngznk5e+tB/WUV1RxpxBTbbbJevhE41oFI99klHBwQsAycJyMeT32M7TY7KDk\nChxnhPAhfTmHKARcpFGbdVCZCa3wtInkUgiSmYllqhfAmOqBsO01JuxqglMF\nzvpDOe/n6644XlPpJhYZypfh4hHhQyR4I9fRfMCBooS2zmYanbQYtCl2tDkh\n/gcAuHYC0wXgem+hbQqMxW1mMNCH3bIjYcvtgW6Z/9nD8zyWfFLUFO2tK+8D\nIwdYcSya9A87lO+PZuM5lt0iwjfnlaKAglY9XUsqbHl4ptRC4CKCqw7y9Cmb\nDeWjYtIPUFdcedzdh83MCleGq2msnpSwBL6d1vCvk87CICbYEWw48SOYdAuM\n+eLbHNs7RRAAICOyUKwRmh4nrAdhokbb+0ydGAwRUj4Xh6eRN09dMYhEOosr\ngGRx/ynN0AOoO3q2V2SYW7ReIDYGDfnVJPrEPdADiJgsP7ZdoodZUY8ku5NV\nUPh2iNdcGnQj/qCWkbfjiMcHSd0eRRzMSvh2I3f7xgpG3PonCvDniP92GkYF\nb/a4RMbO+8AshkWOOx5FlKvpSC9bwXtCsG8hFuROps29W/b0K76RIMANks2C\n4fuu4Kkqnk+cQSOVpdohwBISSDD485ipAAcSthJ+BYBVnbbI7uALuZ/xXGhs\nZ5kB\r\n=SuF8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICo7rBTxKtl2CLK00/yjfbzoMfJLB8WfqytkatS7X1VxAiEAiuRfvScW8OniGQw3JvJDMPMXzpK8D2mjqssLB1aL6/8="}],"size":1692,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.4.0.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/auto-id_0.4.0_1571858970611_0.23773361516980818"},"_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":1571858970727,"_cnpm_publish_time":1571858970727,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}