{"name":"@reach/auto-id","version":"0.11.2","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.11.2","tslib":"^2.0.0"},"gitHead":"2aa6f03c5eed8c2b7525a29db1c69fe6bc540e5d","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.11.2","_nodeVersion":"14.9.0","_npmVersion":"lerna/3.22.1/node@v14.9.0+x64 (linux)","dist":{"integrity":"sha512-YZ21b0Kb88wJ0t7QjSznWOYskARQMnmXY9Y2XZ5RyYcZ2krT4s3+ghghpfaPs6BKcrZDonZCrU65OFDJPa1jAw==","shasum":"c66a905c5401d1ac3da8d26165b8d27d6e778fa6","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.11.2.tgz","fileCount":11,"unpackedSize":27620,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTeh+CRA9TVsSAnZWagAAj/UP/1ZJtozrIN7xi8zn6bKP\nLX64xzqjr7ibMIAYIoAiSYusBaU04iA7H/nAeomo5htIKbR8fw5F26KfY3ut\nbQM5U8X0qQAuZqfez3bVeYsI+ZErUb4izMIDxToEK928mQBbx0MoY8n4VGr8\nzD74/AfwPwxPuf7TW8htNL2Ek9lyDVFCxmkpbFTqWOgjtqvAGLzp//GCpSfI\nn4Rm0OEhV8EjspbuknSgQrwA9nrUFcpqfvoDLQ3afu0ZQBiNVpOWTqgZV0e3\na/MnLXJKNxC3RXpg8bbP5Y4+iInBtSw453czaijRIQbQF6S5VFl4fe6opDDT\n3905S0+R4sGQoynaspGH4S++s5f4ufyGY7O0pg32r/7sZwMkFB9P9nGhw3RR\nl1GrGh152kcN3+y95mJ12OsW3/6nbSEOFiI76JAB1S/+3/V3mg43RAb3uZty\naA5tq37LKVzUMUije6XJN4WW3F+E/W+VwCzAhSev9kjlMzZ6EEG9U8w+Jdgo\nCpJhQ3M5up6lXmRKeLJzU5NYqoftdzYRxMTWnZEhayMIpXdUJmuC4oZjldJc\nGxmYfwpVBHgPLPdeILH9LWDE0lzRbby+8bxMZMQ3H4/rDH+8+FnmCGQ/shyW\nGepGbmHujdQdVwwVSJROqLz/rOLGqeNTKpm/0nXP9ShPTFBZ2+Ro1RTZ3bC7\n/lBC\r\n=lfim\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9pXE6EoXx6N0rx3lGYsVf9xochiLF7lAU2lKsmfz/OgIhAPj8Uxilg3En0AX/bTHznAdSnawOP1Yl8HV68ZT9zd6z"}],"size":5264,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.11.2.tgz"},"maintainers":[{"email":"blainekasten@gmail.com","name":"blainekasten"},{"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.11.2_1598941310468_0.06573007413921594"},"_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":1598941310565,"_cnpm_publish_time":1598941310565,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}