{"name":"@reach/auto-id","version":"0.18.0-pre.5","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-pre.5"},"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"},"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","readmeFilename":"README.md","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.18.0-pre.5","_integrity":"sha512-j4V99vly6WTI/NLZ4WTrDWoMPpWxqMojDcMS3vOm6SxvMFpa2xIfsjZsIaXkboGUm0xmv6BN8k/LQMfG/AcP5Q==","_resolved":"/tmp/e04b9b257a22e5c91dfceb77945a9ee2/reach-auto-id-0.18.0-pre.5.tgz","_from":"file:reach-auto-id-0.18.0-pre.5.tgz","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-j4V99vly6WTI/NLZ4WTrDWoMPpWxqMojDcMS3vOm6SxvMFpa2xIfsjZsIaXkboGUm0xmv6BN8k/LQMfG/AcP5Q==","shasum":"e058e05a4fd8cc51f693b4fab02e54ad77412aa5","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.18.0-pre.5.tgz","fileCount":10,"unpackedSize":16544,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIByBGFXvcLGiwGlz9HceFiwwG8/TXVuLlnRB4XkxK1PKAiBW8ZzVraUtHylc6kkdURv+nVsnJlPUzwoMlwz2EPD+bg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR0tuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5Tw//a75jGj09mJ9p6PPsqGIT4FvGigxbfKVVPfo4XM9MFwZR0/FM\r\n4D6VzlCXMHrKtjv6glcnxipprPWar6sz2YqohWoTlzcatWkOv+y1ohkZnojL\r\nsw8ncFRY5eFNDoSYGly7ZLThFM3U5credj9aVuyDfHJ/Ufkg2ckL4P0wJfH2\r\nXxu37J8bkOwITbNBSCzTH3ErKV8QMW+SKSzmr+xWdbDA3caKmdhWPVn4UwBM\r\n6S3yOmt2cRN/PCMZvEFd8rIsMuugom9dMQXDVa8BAI/nJwtZUkYLWHrZFMxm\r\nBQIHjj/V3Dw6e5z2YGHMIRs7aIpEFzwxqTADrhKH1vBmTtfUpYGw+umz6zNE\r\nSboUVw8M4ZKCcq0DKG4LHEBpEAm7d1/nUCED6d8JoLFlihOZ/l0925H0G8x5\r\nN/1LzWRVaEfTti5yKMI6lYaNw06k+alMMZTDdD3nVXsl3gCU4nT9ZSiVs1Xy\r\nwN3d4XK5+wFw36Vn6X+xGF5II3q4uSv3qgOQO2gxn8VtvH3nUbUHF/r4gD5p\r\n2YiTRW9JvOpnvwxbDKhSkAXXyGg63DT2/VnFseDUthdIqZH5rsoN73p3Ev+N\r\nNWaFfsseYZ551XvOMScNMDLdpagZ+IL53jzIpw/f9wrif1P8bEb/c8kpjFsH\r\ntiRRGhnmdj9VY/7PR46ND/QWI2T19ySoZFg=\r\n=1UDx\r\n-----END PGP SIGNATURE-----\r\n","size":6384,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.18.0-pre.5.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-pre.5_1665616750706_0.2832631591636092"},"_hasShrinkwrap":false,"publish_time":1665616750918,"_cnpm_publish_time":1665616750918,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}