{"name":"@reach/auto-id","version":"0.5.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":"7e33672d882cd6df77ac8cdb76b6b4a21dbf28c2","_id":"@reach/auto-id@0.5.0","_nodeVersion":"13.0.1","_npmVersion":"lerna/3.18.3/node@v13.0.1+x64 (linux)","dist":{"integrity":"sha512-d4jHMqvxUDVwgj6mcr46y+B7012Py2A3dGJmQb8ckc3dtvZwh62II6Uku4cwbamkSGvHB7mMj8wuj+uTohiJ9A==","shasum":"16fcc44b807a2fe9c6e730d8693ab87155de4066","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.5.0.tgz","fileCount":6,"unpackedSize":3749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduxXhCRA9TVsSAnZWagAAT+MP/0HOtt3PPfJVNuAu7bhh\n+++NgXwlqraAZ/0inrPHYtaSxB/D2IAkay5IlNOCrN5IN0udIcTxLQOK1u6Y\nczHKHFALEz78o6qN3eCMUjQdcE/RQxqGzjWAWlhXArrCVctC/1Admx6B6Ieq\nwSV6qdcHCK5Iksf9zCK1iHAdMbxrW1efj7OBbEMMBbS5ApXGNmxkFzbSmt0B\nlhj3IM4JePEw/ZoaWD1/kBSrAjK/6pTA5YhkoEjZ+wC9WIVFRICUS20DdwV9\nS42mLLxZLSQ8jTVOtUc0p/MZGMCHbRK6/nZY21L3pFkyfzlTnkoARRsPkDJ9\nygo3PtIkRm8hmGhoRxSUPZXOOvhmzBzqVYWXHbnMX6sIBDdqYOXtp1bI/T2h\nSBELAmH8yDCTdR4eiXweysboGJ4dBuQKFkGhpJkVYdR3cL4RiSJJYV5Gch8+\nv+ZjFimvcFE6B9TfRlsKQSicmJcU/PCeoHdwpn5imLWfXEAlzCvWreO7jfT8\n/t6s5ZsRZOdAJWot8LQolM1Tuetc3QAJrPFsnqVsdmVV3vssbmYV5EXIRHbL\n8vkl6m0blMAYyN10a2QYvaY39T0jFujAn9x3cyxPzyXINJ14M06b+WLCtXdM\nlNFwwtHzsN6ldXTCovrRAWpJ+1KQQ9eo4hkSYX9dH83G+vk5SdPTGoiMVYwU\n1W2z\r\n=eFaj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBpNt30icwCNeICnb34hLv+7wKt+FRs1b72FMRIootaAiAUb2t5DpAoiAPiARV2A3v7dgUXrCXtTB/Mt/xPXxdH2Q=="}],"size":1829,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.5.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.5.0_1572541920783_0.6115858160927339"},"_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":1572541920910,"_cnpm_publish_time":1572541920910,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}