{"name":"@reach/auto-id","version":"0.1.0","description":"Autogenerate IDs to facilitate WAI-ARIA and server rendering.","main":"index.js","module":"es/index.js","scripts":{"test":"echo \"Write some tests you bum!\"","build":"node ../../shared/build-package","lint":"eslint . --max-warnings=0"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"author":{"name":"Ryan Florence"},"license":"MIT","_id":"@reach/auto-id@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"ryanflorence","email":"rpflorence@gmail.com"},"dist":{"integrity":"sha512-DqJry5GFTZpehbrivWiA1ZqZykGWJbBDmjasI9xtRDKcfZ7EYcRdrO0y1aKJDGTDNKCQSm39ES2KkHLKDgJlfw==","shasum":"89b49270c3b9b6cfbf05db46779e10f28037c7dc","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.1.0.tgz","fileCount":4,"unpackedSize":4168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjyLJCRA9TVsSAnZWagAAaUoP/3W7+DfAOaEOx3a71gdH\nTtkDGlicC+Bpi3DR/bHC2iC005NR/gIWZj5aUQM2Z7CjAFNF/JRPxwApFeU+\nmydj5jHLK09+nIIU6rq11TXhp6pEc26Q6AVzeExZwQ8IFNPhCGhz6d4Z9qWY\n/qUGL7Vkhfr2b0E0Fy4DvITnjm+OjQfAQS6IN1AeLeoPIslPNXHs9aM1jvbr\nthMbwaL9wjWnva+4tcieVIHahhSK3wwOydkVnXNZ6HiS517rZ3/UZSDfWtU+\ntvcntGUvj1WsrI89c75IRP+z9d84yDyHugOQ5r0MkKdZWXRZnqLPZju9XWTJ\nDZIV2zaMp2KRB57SCVq2pNycCsuf2rCKRHsdKgXjlejiiyDITynXWFpZPmkQ\nBSPbR8NQcqaf4pDCD8o4iPLucH8YqCmPNZw824+lCCi91PAm1IzJcZFpCD/7\nCBWUsWT9OH3J+8xrHZUJWJk0bw+K1up61Dc77cfF5G0rTYufY1Seb4mX+pGh\neVZ8ov1H9vZeBtm/VnwzvCC+qAUE7HfVwxP2FEBhYEHF1NkWJNMUff6cHiRx\nnRCqSBXOuPQw2leiAy5Dsm7dsdlimmZ2bNDyfjXnDdf7RHtWuSepwQRRqQiK\nFYFoGjleBe+se+N7hbyRCrrhz7lLCH4yrDlMBPsGQMG5JNAnzk2qRv1NAOHR\nJxfq\r\n=zt6J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLhloBpoqKOC4k0DQn8CzG3cpfZdAV7GJvv7oRVrvNfwIhAOLfOJVV4ZclKwVtct/2y8LGHYJN++DCnTuMSawDd6yz"}],"size":1355,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.1.0.tgz"},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-id_0.1.0_1552884424736_0.4710673620800927"},"_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":1552884424857,"_cnpm_publish_time":1552884424857,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}