{"name":"@reach/auto-id","version":"0.8.5","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":"yarn clean && yarn compile","clean":"rm -rf ./dist","compile":"cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json"},"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":{"tslib":"^1.10.0"},"gitHead":"ac419cf63d0827016ca448bf95482bcd4c5f879e","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.8.5","_nodeVersion":"13.9.0","_npmVersion":"lerna/3.20.2/node@v13.9.0+x64 (linux)","dist":{"integrity":"sha512-FmyoQ5Mvw+WXLd3JOlDmHDQKqhTiZ+BwtEq9HW6pgzYMztq1wr5itv4lrSDqOYa/hJfNrkBC8iCtaIKcykuYnQ==","shasum":"940500d4c93624852efa5ecbed29c5d7015eb6e9","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.8.5.tgz","fileCount":11,"unpackedSize":27409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUDgRCRA9TVsSAnZWagAAZUgP/itHfG9J1SGC/RQ5/8Da\nfc2HHbXvJCQthc/Vo6I8yXEkXKucqdWKcfMLLyRrmrwQAQPkVfPYRMatAM/O\nRMXE5SAEsb07itkGubFjb6DBa1rxauBhsGwwfZCoZ0+3dLIVNuLGiILo/T1a\nlB08z0voKayG++4ezrDdfndLK9a2mSM6wdf1BfUdw+qtkTrYUo5P6d5vrbe3\nrEgFaIr9HYlnb1r4qVVZehG2EH9vIyKO3CmkKyY3PS0s6A70MTXsv/JGg0IG\nrU45WFYna5IbfCM2emsRz9C/UKy0ojHi4XCYa8e+ufaqc283au3MzDe7iRIN\n9zJiVkwZNUPcLaONU9yp3jA6KX62rCr1ckX+8HWM/mo2AknucDwzPE0TXIiL\nR4t3PtPWi/i8T1IZ37rh8unec578Fm8DFlAwxNPzOGfPiulMWQj87L6O0VKp\nnDsGbxTHdUqZNl+by9LU9zXMHUxD+hrzArBxp2jcXnZpS/CtYm/oKokORg7l\nkyfKupXB46PYywANUlL4LNCFu9UW9pLlnrPCKofFlkFDlkdzfYwL+xz6hPW+\niYjK5vNiFPepqNKKoseY5n/maxh3U6JbQM2hq2peVc9+ZHuItiTPRMPL/RKd\nBGMK5yBkyadtGauuu4qH9yE3h2uhr/+Te5j1n6khr48UIRPmWl23iiUvJLRe\neF5/\r\n=Y/Lq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGi3g8kXpArjrv+YTlCiujzNEKuuqYiBCFKZWm18lC6xAiEAjLl4IE+u1yr52hz8YyU6pz7nVDG3KPeOzs7YdFkwLQs="}],"size":5264,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.8.5.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.8.5_1582315536990_0.616017750755143"},"_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":1582315537093,"_cnpm_publish_time":1582315537093,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}