{"name":"@reach/auto-id","version":"0.18.0","description":"Autogenerate IDs to facilitate WAI-ARIA and server rendering.","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","sideEffects":["*.css"],"repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/auto-id"},"dependencies":{"@reach/utils":"0.18.0"},"devDependencies":{"@reach-internal/dev":"0.0.0","@reach-internal/test":"0.0.0","@reach-internal/tsconfig":"0.0.0","react":"^17.0.2","react-dom":"^17.0.2","tsup":"^6.1.3"},"peerDependencies":{"react":"^16.8.0 || 17.x","react-dom":"^16.8.0 || 17.x"},"main":"./dist/reach-auto-id.cjs.js","types":"./dist/reach-auto-id.d.ts","publishConfig":{"access":"public"},"module":"./dist/reach-auto-id.mjs","scripts":{"build":"tsup"},"bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.18.0","_integrity":"sha512-XwY1IwhM7mkHZFghhjiqjQ6dstbOdpbFLdggeke75u8/8icT8uEHLbovFUgzKjy9qPvYwZIB87rLiR8WdtOXCg==","_resolved":"/tmp/1a445cb667832b6b7bbfc162e08cb0e6/reach-auto-id-0.18.0.tgz","_from":"file:reach-auto-id-0.18.0.tgz","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-XwY1IwhM7mkHZFghhjiqjQ6dstbOdpbFLdggeke75u8/8icT8uEHLbovFUgzKjy9qPvYwZIB87rLiR8WdtOXCg==","shasum":"4b97085cd1cf1360a9bedc6e9c78e97824014f0d","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.18.0.tgz","fileCount":10,"unpackedSize":15600,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDjkJZjBLa66Lrylq04xxKJ8pv4xsKLby1ADuGEkIuQoAiEAm3acuLyTqI5LSCXM+eA4lfMVc0PpaQN/lZGGCxoPux8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR1YSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSaw//aNO8LmnI8XhS39Guetpe1Yrj76Ds0FsZPSdYZSd6GJfZWSUR\r\nY7R29No8OyX6P9bfdeVE26L0XG06tZ/xPM+KcueWd+RMmpMhciTxcAq+t8lc\r\ngahSXjDiqJP8cYdlPQ3gU4xhum6p0KsXiQOK+IMOkRbk3Gu3cWDFpy1r8MVZ\r\nY7+jZ0VhllsklIn/MRrve7IGnop95GvOU7xffwe8yoNPyBNiVN9HNHV7cWq3\r\nXGsncZa5hjh7S5JLMCZuEHPfvUvX8pHy3BHiu3ybKz+OsB1NGCDEYrxRUGKK\r\nu2J+dr0p281EPR7ldiZJIppIxjUi+gqi1wdT08AWEK2RTNANBYvY5qdGkHos\r\nQUspFtXh3kd7bwc3Z//Knv+wEaX/CFJhp7FimgVszVNn4JPvPMs0Z068fKJd\r\nKWOUbB0FZEgVqLTIoGQmO2E9cBnZjoiNmpW+fmjBBYiEOycI/Syj1YlVJi3K\r\nKIukSyhhpcw/by0dEvRJQ0+I+6KZOJuHkdaLbLF0NtdoEvAOFZk4PCq8ed8V\r\ntD9U69MrLwOdE0BcJYw6m7iYNdFAVwlzNeWC0XswRVa7RVjcztsh4ydcXHGp\r\nI/R3A5A/MycwNzA44jZNIQ9b1xWnjLDKvIOPFJ4+bjEuXNEtEETxKK2pueHg\r\ntYhqfYmbCBgeb0xOw4yrS/tpiBPXFv5Kyoc=\r\n=FAqK\r\n-----END PGP SIGNATURE-----\r\n","size":6177,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.18.0.tgz"},"_npmUser":{"name":"chancestrickland","email":"hi@chance.dev"},"directories":{},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"chancestrickland","email":"hi@chance.dev"},{"name":"blainekasten","email":"blainekasten@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-id_0.18.0_1665619473893_0.1570157421463534"},"_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":1665619474086,"_cnpm_publish_time":1665619474086,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}