{"name":"@reach/auto-id","version":"0.10.3","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 ../../scripts/build"},"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.10.3","tslib":"^1.11.2"},"gitHead":"fd32b2b31a3e50265b0c274654a5e4105847d18e","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.10.3","_nodeVersion":"14.3.0","_npmVersion":"lerna/3.20.2/node@v14.3.0+x64 (linux)","dist":{"integrity":"sha512-LK3qIsurXnga+gUbjl6t6msrZ+F3aZMY+k2go5Xcns9b85bNRyF/LwlUtcGSqmhgqbVYvMcnLeEdSQLZRxCGnQ==","shasum":"d2b6fe3ccb81b0fb44dc8bd3aca567c94ac11f5e","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.10.3.tgz","fileCount":11,"unpackedSize":27690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexwP0CRA9TVsSAnZWagAA8qAP/1juAw1acqBxUsptN9nk\nSiB1ZkzKnkaV9Jhq7c1gHIORpfD4JDBhh7qiYtac+bp9JKpEcqGduvfMl4n9\nC0MujGydwstv3fHz6ZBYCxvdkRmq7T+xIvwf63deKlrbKSnvccbqdDGZiFVm\nzZ4zLCdVVSb3G/fDLlO9RIYYhHZip5Xu6e3lnhxXPROi+C4HO8bMBMDy9yj0\n3hqIb2S/J4ZqIjDhmKnODDUSBg8Q21EotRXOMXRtdCR2mpHph5Fby4cu4jTI\nhuaQ1DpVRCrQaj8sMpZ3gWWmOqJ4Jns2h4lZgn1n2PlofwmIIdbxSQLgP4W9\nkgkJbd15qrJ5d4CvepWE6vqAG3WUJWjzRK4lNhYZ+m3xeUp+hQJG7XIgvTDj\n6ZMPwfjmxORXSPvVyiFT6YcaMDE8N+XSqQ0q+gLMjsZcky5jEK48Muq8ADOu\n4KJf2zFDJjpS9f/gHjMfCVf964al2Wr5zFU0AFM8XSHUVsQ2yGiQ3uwJYoh4\nGn1JnNxr/NP6U7QZxvVWkTlvUjy712VLKsD+fGh66qRzWryP3ArgQary5Yac\n4Ndx6ppC5VZwjBKdHGgG9Sf2bq5d/Y7a8rdk9QxiXKZdh7A8w/ZqWrjQoD6M\nHmujBqJBVdkS+2JIqbx6Tn0Bl6pXbyCtpDN4YX0z1WrvdAe1hOW+SGRyrhjc\nKEMj\r\n=bsPr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8i+vDTId6PuP19Slo0Y/e1F2qr3NAxUcvwAxy2HImDAiEAh1Hp13Nqpsia29e9+E7ysWsAnvyx9e2oEJgpg1UQBoM="}],"size":5245,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.10.3.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.10.3_1590100979723_0.611649617430754"},"_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":1590100979859,"_cnpm_publish_time":1590100979859,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}