{"name":"@reach/auto-id","version":"0.7.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":"yarn clean && cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json","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","gitHead":"fe739beb1d94cc58c4e72f88ab58efa58e0de8c8","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.7.3","_nodeVersion":"13.6.0","_npmVersion":"lerna/3.20.2/node@v13.6.0+x64 (linux)","dist":{"integrity":"sha512-5TUE7x7/WYgUaQZ3rrAfpo9L2PeuF45SEXfezQztUZZ0Pao/MuyLlPxUG8NgnibobjsE9l/JpB1Tp06narz3ug==","shasum":"4456640b223452c2e5cc527c4c74cb98d4dc45ca","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.7.3.tgz","fileCount":12,"unpackedSize":27327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIkU5CRA9TVsSAnZWagAAk2UQAISN+txqg5Im6/xjf7NV\nKUKfdrFIQtgZtfe9lGtCR5RZ5JPmMnmyZrXGJM5zCmTvtc6f364uqFCifI5M\nbDqCxKNZd/4PHPyjhH5Swo5N5nh4XDgCWXK2gtS3KtrXjlRwJOlQfTgnBIKi\nhA7EiGKYR2q0FPwwEbnq5C0EuUeCORWUt5NIJcQkY259zLqO4KwOzGN3d3t2\nbjq/FJsyeOA3XfUrNRn59TsLlwXNGeajowPjbxbIwOzyqtezkJHNXjeL72jY\noYlB1gUyg1rQ7JqMHWPBHdJc02HGsCftu/qdtHUJeALe1kAiDhgDi5o9+WT/\nLSxWLXV9EmjT1QkD4oNiEDRsR/DV02bv3zV+nF0uu8OtZ4OZ5UbBaZoJ8Mnc\nXNHV+JF2Ink6CNWLtN4dbT0alJfUIagkCIGFzQyLuw0dtx6ae1Ys9rlTmG4W\nVGD8ye7GCDHf4xWbVvoR2cZfVcgnCN5YJX4SHAWMNcONe0rueHuJD8rhSXcu\ngpMkqwdJOG2mimwFTbyMVrAtN7eiDc/iohergvYFbHkmHWptDfLC2vvpgdZ3\nHmUaEs8ifk07NhUAdmBv4KPhHwtqMkJj74Dh62Nqal2KA8H4UJnnYbV7iKFn\njMlLIrWazWtdjtcG5bkd4kmphYmLGU1sRc+gu8pQ7Iijdc3FVXwZ9BODwUMZ\nbuPW\r\n=Lwaz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb49s8eNfmrf4cNLu4vOGATk9ihOVIqSW8022eGxEh8gIgCa92kDhVAeS6jNpu9+OwTnyafiq/DvIqGYDm5FtXobA="}],"size":5248,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.7.3.tgz"},"maintainers":[{"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.7.3_1579304249243_0.49354015252453065"},"_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":1579304249388,"_cnpm_publish_time":1579304249388,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}