{"name":"@reach/auto-id","version":"0.2.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.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"ryanflorence","email":"rpflorence@gmail.com"},"dist":{"integrity":"sha512-lVK/svL2HuQdp7jgvlrLkFsUx50Az9chAhxpiPwBqcS83I2pVWvXp98FOcSCCJCV++l115QmzHhFd+ycw1zLBg==","shasum":"97f9e48fe736aa5c6f4f32cf73c1f19d005f8550","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.2.0.tgz","fileCount":4,"unpackedSize":2296,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJclZyICRA9TVsSAnZWagAAf0kP+gIHYsabvRLY1yVNAnGA\nUZ7oEMsNeIkCk3uEm/xuoD5FvIQEMmTKx3htmezj4exUPOmpUlo1fUQbLQVe\nUO6LpC0zf7PQDEnjAmv6kULJYkM3Agi7qeeyF1Kt5wC10og/AtWEivPTbFl+\nstwWq2XHrOijxYHhsn8/3GCOJ0I5cYZ0HYOeKJVNfbE9GHQMePvRgrjvw5bU\natEe62olQxwoXeZh8ehDxVTaia1ttEieZ4GxcwHYsor5iSleiWzmzZlkDber\nG/0wbwaX/073Fmk+/HI1HMNS6QenE8+IxtCfjVfRXy5NSToJTsDtD6LT7yH+\nH+0BEORcdnhgBtnYTbYmTyMm+FJb9zocbv6aCaZwU/7HpjXwLmfAc3W8p1Nu\nedMrPX+hVxRQV2ciQ48n8csTZwgt9jDIFxdq/sZlZAFAm+HMWHB3WJZhbBvh\nBLlsblcaIJ/iV3nXmGYu7Ee8/YDg75A+qY6LsIiiRpWwVLw8YbV5cn5OSoYk\nmJfBeZK2A2StFBnSj63eprnp14DPkcA29u8u8LtC1rlrSFMrD0FI8r6ZNci/\nfv80+VlvBv1xpI1rzwwu+9YjsZLgHFa+1f2aXhlWJ3qTpGl2iqZYz+0FlJYB\nwa+ctUGrbHrFOu6NZqnWIJGmeK2HDm2Gph29sG6XcHSEZGFE9TQNq2Qaukhf\nQhPZ\r\n=keZc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIgTMz2YJTeLQRDRWMEXDFQCtZkBD7zL5vcI7MlKuwXAIgL5zPbyO/ppYsI0boViiCC5FxmQFKiQxj3E9g9Igdo/U="}],"size":968,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.2.0.tgz"},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-id_0.2.0_1553308807434_0.3867771171657117"},"_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":1553308807576,"_cnpm_publish_time":1553308807576,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}