{"name":"@reach/auto-id","version":"0.18.0-pre.1","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.1"},"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.1","_integrity":"sha512-x6sFhQkej+Q9AKDuywHC24n3jghfRWMdocjtwjGq943I0c9sADHzA8XMiDYKEQF+mKOakDodejD/e0GfHxN2TA==","_resolved":"/tmp/469ef5dbd86ddf5fbfbd7f49b12b6631/reach-auto-id-0.18.0-pre.1.tgz","_from":"file:reach-auto-id-0.18.0-pre.1.tgz","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-x6sFhQkej+Q9AKDuywHC24n3jghfRWMdocjtwjGq943I0c9sADHzA8XMiDYKEQF+mKOakDodejD/e0GfHxN2TA==","shasum":"e5d753b2f164432f427c92e721aff53f188c3d5c","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.18.0-pre.1.tgz","fileCount":10,"unpackedSize":15706,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICzbeY/uk3y9lfSclzN/BklFJwNq05ZH/JGJ8jHUj6I4AiEA/f6SCAVArHav1xqkGX0uJ9ofcglmfXxzKYwD3Gkd6n8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjROI9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmSw/8CqrFXKacF5PhHDx0SC231GwuOqu4Y06Y3nMCK3z1Ma7lnjaG\r\nHLG9xQu+rdCITfjBzneiR2WTG7t4dhG29v29kphWyA5JAopxZYSnd+g4Oyuy\r\n+tksioUwp6HKDozbzsqziK5NFMBgT/7IOX0bcMFaGRsh++jCwWUBkKa8zUVP\r\nuoTiDxZwi8tSgyO648Fmdb4DsgM+dirwWf3xTj7FHO90RubysFMjGVFYBWVn\r\nRTeV3GeYSANp+V6LN2PBlxI5zALxZNKBrgUjqWg+xOoLx06kUPZuY6f/wr8b\r\ncGLsfalUSgVErRQXwaqnIP7lw0YpIN1hegsgq5GEIPWCfCFiMyfdE75It2lL\r\n1ytwoktoCGoI9KMxbvMyDgG3yV8pyfb89RTsofkl5vccqLjQ2/NJ8J/ToXty\r\nqlh+zArlQcJzzSUHIEE0hC5nKJ25RUXwGQXsEuai0pjRmdSiua8Kcq6/3vtw\r\nG0TW3M9nbzGtj7o7sNOJs+k3Yy5DuU5AN4Q1xHLGYLvoJ1/U4CFa/0ivb4fB\r\n+wUauTlzIG34AnjNKkQDmP1Tts1xiNeUoVyJ5DQC0SHFI6B8cC9DUcxQ06bw\r\ngblXo4XIOpzGGFhwHpYH0d+fHIOxBxs5gPlNjC9n1GBYd3WY2Pg4K9eBDjlF\r\nqitJNKxL0CiI1df6HXY502dlPev/W9fDKds=\r\n=BVOK\r\n-----END PGP SIGNATURE-----\r\n","size":6141,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.18.0-pre.1.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.1_1665458749366_0.5095499676500093"},"_hasShrinkwrap":false,"publish_time":1665458749520,"_cnpm_publish_time":1665458749520,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}