{"name":"@reach/auto-id","version":"0.18.0-pre.2","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.2"},"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.2","_integrity":"sha512-QIEqRSJ5ntGvmQGMprHK3j30pwB/zJgGm32vkiJ6gISlcdjC+FZaLw3/BxSyWFrDL7RwEObI7KQkIm+rrQtW5A==","_resolved":"/tmp/783bab5e1d6a3e64fb150a83f8f63a02/reach-auto-id-0.18.0-pre.2.tgz","_from":"file:reach-auto-id-0.18.0-pre.2.tgz","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-QIEqRSJ5ntGvmQGMprHK3j30pwB/zJgGm32vkiJ6gISlcdjC+FZaLw3/BxSyWFrDL7RwEObI7KQkIm+rrQtW5A==","shasum":"f93829131979a8d07fd0fdd2937296314aeee088","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.18.0-pre.2.tgz","fileCount":10,"unpackedSize":16123,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFBC8E4S00iahzGiTEPFIF19p9Bn2Tbe8bQ0TU7yndvGAiALXRecBGeTML+kcPFsvCfTTISXSehf5rHksi24XDm3dQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRd9BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZeQ/+NBsXIbrp9NVgCEu+1zpuRdNJ2HqOA8j73sdmijThKiOubDG/\r\nSLxU+WHVvUphSOog3bp3bdfs+AOUqVddZPwg54UWrc01WJ1KV7QJ5ZxfG4JS\r\ngPBeN53+eqV6a31eaLz8aKpNxr17aJtcUVTwzP0QSwWCnkyirtHjUA8fXM0T\r\nLj99INioFOgAyCHXKLUrMm3iEjlDpmMcHdZu7/BVZ9xY55D3ACXLkBMi9GVB\r\nz8As7NEL0Y/6CAW0OsxrPuSIZpaEm18PsWjToTxI473DWRpg5P0YL1+EcodF\r\nIuxGEVUN5yDc0gs6X+Vh69jujB/w2yDZd1b4IStZXfaM+az7aj4CBGgIzK5N\r\neFupTN5/PV/HJEpY6ifXbuwYl0MJkRbMDq55v6e8MdReF2hXq+uoyRvkuXNW\r\nZBN779mPvLb/7co4h1jThSR8GoDOrjmY+eN3d2o4OeHMS98gJhM7sdV1+/TX\r\n+W8AlhEWJdSP3C/8dxinUxvoGYkINNmHxajTk60VmEfPXdoYuLMUnGs2flbr\r\n2b/CqhScXK7QvrVwXoHuzymwvUlBtPSNlJE0BUeUC8H2O0U4Xvjc6XSs5bs+\r\npjfXzAIOZEEUw+mA5lm8BqWUF/J40TaIbs2T95c7OYLs3XpA5IOJZfrWd680\r\nI/NhUjqIugI5jajFs7hZ1LM5pXwQy45qlLc=\r\n=9Zm9\r\n-----END PGP SIGNATURE-----\r\n","size":6332,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.18.0-pre.2.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.2_1665523521589_0.5528209778151558"},"_hasShrinkwrap":false,"publish_time":1665523521763,"_cnpm_publish_time":1665523521763,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}