{"name":"@reach/auto-id","version":"0.10.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":"ts-node ../../scripts/build"},"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":{"@reach/utils":"^0.10.0","tslib":"^1.10.0"},"gitHead":"e95268bdcebc7f0b5311beff4b6a8e29636decfe","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.10.0","_nodeVersion":"13.12.0","_npmVersion":"lerna/3.20.2/node@v13.12.0+x64 (linux)","dist":{"integrity":"sha512-Uwsd4eNFa5YteZ7DKCVIbhE3c8x9DYVwtLy6ZCl1jo6bXAF6Di1dYm/XnkTmo+OYoKOZlVTu7umONDeezY33rQ==","shasum":"72b70b9bb3f7d0f39b9fae0dcb412168ee139762","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.10.0.tgz","fileCount":11,"unpackedSize":27690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeiTJRCRA9TVsSAnZWagAALd8P/i43lNRp1j4a+AuV7Y+K\nGMt2kZ1sJNH35KW4o4/A2nPNiFUjyB0tOiVl/qvPxN+PHQNtCaeiZCFZSXRv\nTVRp5ydOaqKfh5pJNa4aFPYkw83LhNQhM/vMu47gxc185sAUBdmCBjotk+Tr\nE9vKsASiVeLruxQ9fplsO9Uc5Pxkz6Ex8r1dvtdDr/ZXNFrVbjmBxRcaaVwn\n4RhVQSDNYjYkOfSOoa3d7fZtk1kQPC6OHwVZSeaeAHLzDSEX7oYtCnwLRkRa\nv6MqqMOj10YXl3eYNvbbmi4MzysreEwIaJ6LfXqpMfnhI4q3IISmRaHbprSU\nJzf7yIIzxkQjjusZDkWAn/W/GmaUjeu8B7VY9aN325xYccZMI7C85FMS3Do4\nMyt/+2d6TVHdVfFEbPZalo/JyNFrbKmn4vT90GlCj5IHZtHCQum8FShu1I5X\ntPcK8BY3j9/RkeEOvT6v8cYkQeI2CTZ3KQ4vmxqfKNp+X4SIk+Y4nXciVAM7\n6VQ07TmR3Kw7hwRzd2D2nw2yk7BuuOOT6RQbJFLfcOZ1g6BNRfpNUr9xEeeA\n7GyCZ6Kw2ncTICHXC9nQ1HiX+V4HCjnZl3SChw8TJFXjJTb81uw6HWGFX7l+\nsKJC/1NYiIQl6yPI9OSA7qjSrgtxlCXxb1EqROGta88hKo08IYu+7UKdeVM2\nNcp4\r\n=q+Em\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTojwNe/Aggh5SynkMpVOXg2S1OfAjYamUoEAMY/jt+gIhAJ4/si3Oiamfkj4tyicQfpDnrAyjc9HoMJLn7WMn3wQn"}],"size":5240,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.10.0.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.10.0_1586049617321_0.8600215035967054"},"_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":1586049617489,"_cnpm_publish_time":1586049617489,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}