{"name":"@reach/auto-id","version":"0.18.0-pre.4","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.4"},"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.4","_integrity":"sha512-pn7gb+uE3qSfBJNUew7JQxchCZnmG5FWteYWMSxWXwQrXhHkOQuzY6FD4P+owq/oYeOw6tAIlRNKqfbBu8PkUQ==","_resolved":"/tmp/e345867521bac84acbb16e68bdd5cbca/reach-auto-id-0.18.0-pre.4.tgz","_from":"file:reach-auto-id-0.18.0-pre.4.tgz","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-pn7gb+uE3qSfBJNUew7JQxchCZnmG5FWteYWMSxWXwQrXhHkOQuzY6FD4P+owq/oYeOw6tAIlRNKqfbBu8PkUQ==","shasum":"1948f042d1e2ba87f626314c5ce9ec6af65dee20","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.18.0-pre.4.tgz","fileCount":10,"unpackedSize":16451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFc2g2w60RaZXxs2Zpp7amWL+gOIRVw9K8eUgncu+YmzAiEAqK2v18UlwEu8DDR5PwCKKE7tKRmPIOzHMJEHisvFe+M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRh/IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyZQ/5Afp/3ub7u12jeYXfGF/OMfy8qMzo7XvuPueMuCtvlMWRjib7\r\nJIKaMdEvd4LvMxk1njCM/qeBcz8u2v7PshYrKLPd4ZNErK6piB/5SdRGyHsa\r\nIryj0hT+l/AZycGaYm+/RX6OyQwhk1rCyDccCAIXwxsUFam4InbRxtmLbeZN\r\nwrPsNqLmgA38hVODxdsM4rUW5wZIHbWqZ2hKX3UjXEbYTHbHtdfebIvCgwcM\r\nTHgP6vOUCbtnpCWZAndLLk59wpeLqp/W606rj82V+JEVLq1M7DyNFJjkmQus\r\n4yzk3sMAsW8oPXQk5/rtmNQgxq+yPb9ewQhho00qZ8mikQSjdJQpbN3099NM\r\nphCW7pxkmGvOH2KowALKHYqTJfhFo52WbyEPiOvPH7bf5rUl6fqO5u8owegs\r\nwYe3ZStEMK4v0pHintqagCD70SsmPN7jUojdTIOavJ0/BnbAEOaWlBa+NThs\r\nZzoU2LSup8Ec/E0poZ3Kf9sKfbhpFHoQ6aVpVB97o1ckuUJbIQWhnofqtx0L\r\nXR7BTYGYzyOK5WM9KVi4OvtSjczKBisQXLwfnsBqfjnqJXUc69XMaEs/bvQI\r\nz5mgY6L11Lktqp3grbHtXMSdc25RI3YOoaXX1AtBIVpR8Bx5avJKSPyXAjrm\r\nfT29QKwf3+CzuDJ/3akQ/sbtpXTLJiLEkog=\r\n=Bbab\r\n-----END PGP SIGNATURE-----\r\n","size":6379,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.18.0-pre.4.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.4_1665540040438_0.34916465824335385"},"_hasShrinkwrap":false,"publish_time":1665540040570,"_cnpm_publish_time":1665540040570,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}