{"name":"@reach/auto-id","version":"0.10.5","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.5","tslib":"^2.0.0"},"gitHead":"86a046f54d53b6420e392b3fa56dd991d9d4e458","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.10.5","_nodeVersion":"14.4.0","_npmVersion":"lerna/3.22.1/node@v14.4.0+x64 (linux)","dist":{"integrity":"sha512-we4/bwjFxJ3F+2eaddQ1HltbKvJ7AB8clkN719El7Zugpn/vOjfPMOVUiBqTmPGLUvkYrq4tpuFwLvk2HyOVHg==","shasum":"fa78c71ce2f565ebed1ad91a8d9a685176d23c48","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.10.5.tgz","fileCount":11,"unpackedSize":27686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe89o5CRA9TVsSAnZWagAApl8P/1fkFbrhY+JK2gyycdD+\njUo6Yff9y+t9XWekrUFpvHUQvvx3N3OvWISDPWeSjz2drUAt3YAwZD5E8UAk\nd0DDuKHyeicx4mNvk9ZYRJDtDZpZQrwjGLrC0Tc/PkuNhJKI1jH1S7MChsni\nGM8j9flbdc9DhfUJnGguXKSlU4/X7ILQJ8VHsdtLPEXl8Nu5jlqSCBqRHC3t\n7UP+kTsbAaPoY/PDevcbgSBmSc+fRzoyKzAXetwQOptm0L+fLrd7o5CexKEi\n6FW2cwF+TdIhj4bwN/+d8OsGL4u74n3OhclGCsYQRdJllwo7C+HB7bPkOMIO\n8Xj35GQWDG3M1z/+McG7GH//8SttjYBQlKI6vYm3/dU+Vkzc7GMhh4Ic9QWW\nsmWvC/+jr8TkfT47TXNGCNWwz8J62p/TbnU3+f8qKd4H4wfRDBK9nylwyStx\nvMCxnfRJ3GFgv26fg+aQEbnTe5m9d4AOJTxaQVcerTFKwXSHXWbpWAK7QsoH\n/f9GZ+F4fO1dof4FfR1hGWl+7gm1bC5n5heQfrgwPCP331eXfcFDDnblhmuR\nkFXsiPJOl6N818kx7nFK9MuBu2I78+XtZ4UWZOEqARsBamy8BxTff1RlfhJz\nGEflQu5uotNcjXPWwItkSQis3qLjfvUtBlmjzy6+0ZrP4U/l91BwqSL9TON1\nbIwu\r\n=/nQj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKLiqLrVBMTus/c+lnoGftrgRv4YDh3fGS9OqLSsfibAiEA6ArQYADNaXnbZm+D5Xl+niuIHxxcjZMYcufYs9dgQeo="}],"size":5240,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.10.5.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.5_1593039416687_0.4557326030158333"},"_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":1593039416890,"_cnpm_publish_time":1593039416890,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}