{"name":"@reach/auto-id","version":"0.8.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":"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":"7702c46373c7f11adc21184e7def9977203e9326","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.8.0","_nodeVersion":"13.7.0","_npmVersion":"lerna/3.20.2/node@v13.7.0+x64 (linux)","dist":{"integrity":"sha512-7Aazft/dB2/4NSGl2ixx2n4BKsQLFEiVtEiw3/GdFb6U7+bJ1qJLzWAsSkFc7ACeNtbkhM34RuBZTd44bOtzbQ==","shasum":"13a73facfa42e78eea7f97aba675e15f386ec801","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.8.0.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\nwsFcBAEBCAAQBQJeM14uCRA9TVsSAnZWagAA9AwP/0XS2CZnkb+sybQC45/l\np+HaY1kKcLmM690+lAlxvDmuRxQRLeIhfHS2l1UChunviH7UXEjnk8iTZZdK\nVcD8SBKIBUhasb6Olj5HEh11nIQaxWER9YQEh0r+2B0oPSPm4VfbP46343g3\n11Jj6O2Ns79FIHreA2JijsK/Nt0fSPWSSKGrJAfme1uXSGEy1PT9RIhW81VN\n2md5xIRBttKT6rtywAhUkZo+u8+ost9F69aq67QBCSSzi/Dv1Q4GyawSz73d\nV/fJIcyYRci/Vc5hdsazR7so6JdROvJAzA3766Kpo8G/GzF86CuwF3o4ms6T\nyVutsbmtZ3kEB46AWWeB8hxSodsKAjusUuPpHTjv7wk3U3wVZ78U3QOf1IyP\npqgr8Oq2hORWhfYyAxrph+qFmz2XOCABmIxxFreJIO0gWs7pFToB6gVfF4na\nsI18xmLCx0v0FC/6wVbS2Q8vYogyPQxDAmBR+AaeBQRZBpYS4hN/LrOkCNpz\nmwdt2THPTzBa7q56LWUz7kbwboLckwrW8s/bPrqn+3H8WHvHme0VuX52nr2h\nYUhlGM2CPa7pwHrogKj/F+ns+0XIlx5t15HYQ14H9hEN/TYOk8A5PhqCGAKE\nUibeTcd41a6NvBbF5q+z/D+GRo/hwIrxIcsq81erd+0yc4wGGPJj6y7pV1Qk\n3/1V\r\n=ebR7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDU7mysqJv7sC1MrEBhoes8g0oeuZoHWkIxzCRZ8qPkbwIhAK9kAyO9COHXm9zMQZEp/P7dI/A8+yXujtxFdHjmdTsA"}],"size":5277,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.8.0.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.8.0_1580424750381_0.5127101022316529"},"_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":1580424750481,"_cnpm_publish_time":1580424750481,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}