{"name":"@reach/auto-id","version":"0.14.0","description":"Autogenerate IDs to facilitate WAI-ARIA and server rendering.","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/auto-id"},"dependencies":{"@reach/utils":"0.14.0","tslib":"^2.1.0"},"devDependencies":{"react":"^17.0.1","react-dom":"^17.0.1"},"peerDependencies":{"react":"^16.8.0 || 17.x","react-dom":"^16.8.0 || 17.x"},"main":"dist/reach-auto-id.cjs.js","module":"dist/reach-auto-id.esm.js","types":"dist/reach-auto-id.cjs.d.ts","eslintIgnore":["node_modules","dist"],"gitHead":"80f6ca5f8d25a10887e2bd34d60094402b9bc0a7","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.14.0","_nodeVersion":"15.12.0","_npmVersion":"lerna/3.22.1/node@v15.12.0+x64 (linux)","dist":{"integrity":"sha512-Ym8PBXubuXP7m8CFReqHIH8iXOTcZ3PuAjtHHGuc2EToCwhbbFSf1OouWMUdr6S6vZmu0pOnhOgIE1QGw+dEpw==","shasum":"1edfdeddb8fad656ec894a934c78f20c3b341416","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.14.0.tgz","fileCount":9,"unpackedSize":16348,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYO6rCRA9TVsSAnZWagAAV+EP/0qBym4dqcKYTqkQ9gFS\nv9FuDqOBssifcpgnBCRVfdK7YRKN7Qsb1Am73jxdnPYCrsqn88DibF+1AjKr\nZGMvvPCAxyfdiX7PK+EoWADsRbUqgj5Tl8wAUCvffI7+e+ikYjwSxE9v6N9Z\nTTf5Iyduo3Gf9MJ4AB1BNWGFAg2794e4NMYVLVeYMNZCcLxu23E4NbvBAgfq\naNE3dyfq/BHYC/GPrUADNCA7enM06Z7jEUaM1NCQq/7cGBayxsL/2Lo7BJd5\n7+/8yOMpzlMo/88JpHNnrDZ8PXqhyYWz5SSUox9aWFdaE+UoUN8cljSk1sjs\n+jTl1/+tj+mqpMF2Pyd2+TWqddxvI1NiQPhCsWRHOiROeJN4JjISLUN/xEhr\n/wGpNeWWH11jLsjQeBF8RgM276fFVv/lPjdUbT5eTuNhvZuyyWV30fLYaUqE\nqz+GnCNzop/kQLVZEUTDZUmeGDwg07vy62mkKRHGVgK3N8GuuJxUSLoyIkmm\n/2/LvzQtFEK2cNMFX5iCs3cIdg7WuEQ2vBKcLAbpPS0kQfQIoI5fFdmMrCT+\nYGnlqIDgwYkQYFKfoRvyHsKQqapPKMYyuXBGT+oQwF9tqDvJP/0dVhhz85Tn\n/x8EhWNFwm6D6nQ5iGwie6SFa8sezYxNAsxrl3GRwAxaNNKSMaQHDxrEzDM4\nzH19\r\n=Gn9a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICcffr5Z/JfEpFhPHO7ma7rWt9U6s/8kPyzi6X8Np+LKAiEAvLUBs0tHF5fqPuME7Jg4L44AUK2w/aG3v36m20NrXas="}],"size":3935,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.14.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.14.0_1616965290647_0.0886665120084309"},"_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":1616965290791,"_cnpm_publish_time":1616965290791,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}