{"name":"@reach/auto-id","version":"0.7.2","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":"96cf6c191cca0f2cbcb7ff578f15e289efeda1e2","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.7.2","_nodeVersion":"13.6.0","_npmVersion":"lerna/3.20.2/node@v13.6.0+x64 (linux)","dist":{"integrity":"sha512-9jBoMUnwB4ijh2w9wWQ3oW5oV0NMr2VW3tYDXI8xbd8BW25Bsqvjv8Y3Vp035HwJoLq3I7afA2i+jjBrsJtYAQ==","shasum":"1f3aa4c2f09630e90863d4ed90bb23050289ba9c","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.7.2.tgz","fileCount":11,"unpackedSize":26622,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGQvQCRA9TVsSAnZWagAA7ZsP/Av0P12+XkBDONlu2DVW\nDDFCCwXOsKaUZeQLQweWwYzPh7hkv00KRjmXXEoSrk2Dzw7czJOdgfvK/CmG\nECMTy3W2TS9sAzu2Dpl3MbtjgVC28axWkiDTg/A1DTioRkAxiBMMEh1Wtq+a\n76gE6wUJlRRM6RpdRPtXrRTnGpcuDaXfFYiR92jSo2rRVXMt6beH2L8GFwY2\nqM+e4uFy5hKzZbIE55DHe9O7AtT8ixbEBY9T6RtA3KLbWx4zzRYAoL4++Is5\nXs+eBj2hRaNP/n1ADZ65fNDH1A83OV/wQEAZXHmyVn1+uRljHAbe5xDFygjP\no1RHO1yilqjaCWFRdzJRoUgBgBfsUzlF/YGY1xCJIPfn0m+KCj0tYo4IJPA6\nTv55JaK1Jpmp8WWqz0HiaxGhWBHVtwPt24KMF1q4fBaNW1kMCompnBz+epX4\nL/2+zAa4m7PmkB5DLPF3InTmF4OWjwyIbYrAHvAMqIZ2mycnTDQM2js+KCXR\nBqUeuJeLcwtMrPghN5YbFmbdHJ/88AMyEf9cnPScewchNgG1bHLy32gVmhSq\n21cXkyoetMWXJWFOYSX6k4oGQw4W7lxvb+IHSgw6YZZ5be3takKa+9y96rNA\nMaMsAVrMdTzDBqFnx9qtZ9DNHbDCWohIcR3Emk5otiUC7bTo7RLShCRw6BYo\nYn+P\r\n=yG86\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDA/nu9tQvkxR/UgQ7WCJLBYpo8o5TwS8c3Uaz/YPCgMAIgELpgxml6oTcfbpmcS0amQ7CrgX8ogXUNZklda919lAo="}],"size":4937,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.7.2.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.2_1578699728341_0.20737489231195116"},"_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":1578699728463,"_cnpm_publish_time":1578699728463,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}