{"name":"@reach/auto-id","version":"0.7.4","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":"f460709e283a60dd5ea62952b7feaf88546a50ff","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.7.4","_nodeVersion":"13.7.0","_npmVersion":"lerna/3.20.2/node@v13.7.0+x64 (linux)","dist":{"integrity":"sha512-Om3A3FSyQW2nfkskgNLhItdoCOPCRCsmzlwu26qemu6DwiJLNVUBWlBuXhWgMmys/q3hRx3eRYFrzSLl8uheTA==","shasum":"c20bf6db87ef2f34b1bfb4bf450d675524a368c1","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.7.4.tgz","fileCount":12,"unpackedSize":27449,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeK4jkCRA9TVsSAnZWagAAu+gP/2XnzomCg8jLelGxdmav\nupyLG1vfFYbaIjQT4k8ue8BGHJcRLHSgv+ovBKuJER9ji7Bsa/tk4zukhiLU\nvhVKJUyNIRWjEZs2PYpYFy0LgLDSxT/rKfvZ3KRReJiHl5GLXHhZCgC2ixyg\nghR5qQon7LC9ieyNL7Awlat8wuIXVFQCF7wMp7UJj0NOUkhaR1t9+YW/Z/hf\npbTfqcG9+YNgn5OAdqV9DF9WxUNCXphoVE3wzWtke3lZOZ4ccGa6Xgf304Q7\nU8546fERyocfJWMefvzDKeWgjs10uvpYEOXG1iWBYLo7x+IL4m3VtQbJiVoU\nREonh4wO+xYXM4JQn9YEPFNOpo8Psx3nGPk3ZyopgpkLL8RE0z/pAjsYZJ+f\noWIvVLAwLBLTrsFIWcG2hmsE3mUoJ65TgcXpolxo7XS4H4SLsZqWqAv+wc3q\nphCUyx5g6RAAzEis7CLiU28Yp0KswPh3kKAmsGY+IPlsbJXsFi0xGWP7/B4Z\ni9R9T0aI2RvUavDUt3twyCi2tPQpgDcps92zxy7y1lI/C6CJPqSz6r17jAPP\nzn1t87VKyYUBemwNdUtlOdyNbVJ4mgmO3dlFvI1rI7L2F64eHw1ZMiq2wlFs\n26vwQHhsdMMcThwGkpNnmt5BP4wH1aYU9RVYwhM7MCbmCY3M40N0o5vPWclm\nr1Yy\r\n=jlDp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNa0nDxFzxbhxl98KxvQwzvpr02E2aLrga9OzyjQ4fzwIgD87khen+W3nAxnz/u6xuQS1TbUZXtckfDYJG+PMqyz4="}],"size":5279,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.7.4.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.4_1579911395841_0.03276034572901887"},"_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":1579911396095,"_cnpm_publish_time":1579911396095,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}