{"name":"@reach/auto-id","version":"0.8.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 && yarn compile","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","dependencies":{"tslib":"^1.10.0"},"gitHead":"ed24a5bb43a87adc36179283ca1de2c5af4ea26e","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.8.2","_nodeVersion":"13.8.0","_npmVersion":"lerna/3.20.2/node@v13.8.0+x64 (linux)","dist":{"integrity":"sha512-yVsU0NZa1xjw9dM8+emYLxvpO7QCPnKqZDUNJl5djuAKantaGzTDIoozViI9FdIy965O1XDKHswuAi64utboMQ==","shasum":"ea33a29dd08d186585650754f983129492cd86ce","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.8.2.tgz","fileCount":11,"unpackedSize":27409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePgQJCRA9TVsSAnZWagAARDAP/0TDOMKd0UPTRRIxpWv8\nXFskPb49IzsnuNI88mI/KG2JeD2VNg/LWBKC33zezh1TVZ/A8PJ1SbTCoJhK\nX3qTuAosbP1+cNk5tB6socGkWgyBY6oGPNXC6hV8FKIiuKthHAbXpm6ZgwuR\nqpLoYjrCDJyAim24vUEAag1Fed87XoicF5ecYb+9NBDu9ryH6kek1Xx+TarO\najydHs7IHdeTIxb/dMfq8JQ0/BiVbALBKUMRmkyXp9u/P+xELqvmpHHthGqK\nluGT2OTYk9CJYL/PEViVVF5fy+uZhX0ZLSyUd1AfRe2wcD9NCpKlcPhB1aQB\nz0ksfbwrWWM+HdJr+cRC/es17Fe+twGkG3/z+UVmrLsoTZXnOHjh0pZ4rKNT\nShF0R7egsvyLH+OjFqv66qjcWnMGyihSFKtYy90P4zoTt9MGP6Um2aN6i33u\nBZCqa8JeU3RiKo/zrpVIjMsfQDWWM7Un19ldqc2LsLxelq3Oe6JaaCGjRsWa\n0ZJ1+SdKArfR2lZNIRYeHhaRdHoq85ZqpNdWleoe6wprTqYVmjKJ3RNFXeDi\n5dUgyfkPbEpV726u1PG46SiRotCO6VlFnhjBy4JaGWLy+DAcPVeObZEZy0j4\nkK+qNVwsUJotSdbzk4ZAUc/yMidTWPz4SjO69UqH2Vaah+X7rRFQnK3p+iIu\n2SC4\r\n=V6dL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAxBZsoh7FL56ox0RqBK7tQRV+Oq6+66WcAg77RSkhbTAiEAo+AbJ/ZoOf72aD+5Z/g2C3h4zyCxsAkiHVD4TFsO4dI="}],"size":5262,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.8.2.tgz"},"maintainers":[{"email":"blainekasten@gmail.com","name":"blainekasten"},{"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.2_1581122568854_0.3356121822822362"},"_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":1581122569028,"_cnpm_publish_time":1581122569028,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}