{"name":"@reach/auto-id","version":"0.13.0","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 || 17.x","react-dom":"^16.8.0 || 17.x"},"main":"dist/index.js","module":"dist/auto-id.esm.js","typings":"dist/index.d.ts","dependencies":{"@reach/utils":"0.13.0","tslib":"^2.0.0"},"gitHead":"c5234721d372e2ab2a7745475007605e78d18895","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.13.0","_nodeVersion":"15.6.0","_npmVersion":"lerna/3.22.1/node@v15.6.0+x64 (linux)","dist":{"integrity":"sha512-yU0Mp+xvbq8hmNz8UfvbJEmy6cHnPJ8SwlXg6WuPsJA9sOJdlCyMfkbwqyz1KFVs2ISCR+wVVLT3j/TuuvS60w==","shasum":"0dfa4c1af46d1ad68d8282c786c03362ae35e335","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.13.0.tgz","fileCount":11,"unpackedSize":27607,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD22mCRA9TVsSAnZWagAAQCwP/0F0l3Y5cyO5zeBuW4LN\nD+1XSL/lBQ6glrVgd8Dbx13ux9YUWe0/lBQRszuiYwePSdDjRGoYmgky+0lm\nj8vSc/xFcIVeEk5eBLAghWqXNyR6R87Oc7ddM7hUOdt7pXCF/Bw+ztWheDaA\nymH7RWzfC2P3JiX3tJ33NTGiF5jX26pyJWrt3enjm6EKS/EiVhBrDA6LHBB7\npEczopJ2d8hqrjSTWr7uEyb67XN90PBnfwmmPNZ0d6xL2iYH1cJKwuCkDe5h\nh6nUNlLjBExxwi9/5rC3Cvufggo34azk5D7bAJ3pYtFUvyIKBM1EQyo8jDJZ\nO6v0DdCgXN8uHDPyHXtD5CmFFAhGTi0ldD00IYeP/qk4KIs1QY7KD/ZhhfID\nuc8NhVNbx4P+unSNsSjjh1LERWanisyzp3opchltwfu6oDqTBHXW8zeAYqqC\n34ekG7aQH1WSGVQzoQpQJxleiI7Xd0/I6TzptskkcdRToS/K9jyJFf8riIO+\nqoqpzI8dBu4Kjhiw5QY+Fd3Co5YbEoHkfwzxGmx8V2Q2HuuyEjMbE+FpVob1\nad0lFIBDbDcC3M8QOEHb4Y66/iSdhdfXSGAC048Z/ioFVOE8GExxNythaJsb\nx4glDy8i0j6A157Czlc3IpkEFXPSJSoS0zmD21IkPbSKVEarTT5DZ7QfOaSe\nlMFr\r\n=Eha8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHr1Z+vksI/COA67P/uJDsbuwdDwnnCxsYdQyOyic3vbAiB78oSS7eekuX3t8tN5LHhDDE3Vt7unOoeUP4wfUPLpOw=="}],"size":5288,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.13.0.tgz"},"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"chancestrickland","email":"chance.strickland@gmail.com"},{"name":"blainekasten","email":"blainekasten@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-id_0.13.0_1611623846202_0.7425825107063044"},"_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":1611623846371,"_cnpm_publish_time":1611623846371,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}