{"name":"@reach/auto-id","version":"0.18.0-pre.3","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.3"},"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.3","_integrity":"sha512-sUvB9+xL5/7nSTDkpxFExoz8WtYv/H89l5OiP47U61Kz25HA8mJlvRr94TaV5+Ph0isbfFn3h1RCnN/Dy+P49Q==","_resolved":"/tmp/f910187dd84790a91edc46faa33e1149/reach-auto-id-0.18.0-pre.3.tgz","_from":"file:reach-auto-id-0.18.0-pre.3.tgz","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-sUvB9+xL5/7nSTDkpxFExoz8WtYv/H89l5OiP47U61Kz25HA8mJlvRr94TaV5+Ph0isbfFn3h1RCnN/Dy+P49Q==","shasum":"c7d5027425af9f8e064e7e2ad57547cce256ca16","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.18.0-pre.3.tgz","fileCount":10,"unpackedSize":16358,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMPV/TNcsI3OGe9E18Qt8uCrCAuSmImQ9KFrbsrs3VdAIgOBlE5h69kXAFlEj7ixTeb8yc92ZIocrfUNqpwBvInWE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjReJYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/jhAAnsDF9MIpdF6qcJlyMrTiBkaNgqo3iBYUcyBdCnO+o2J8MMEr\r\nSu7TuxO8i3wmx7D9+o5H60+vrv4Qjv/berGRga9tRCCzko9sA74UBWrJ9wD1\r\nrFDw1xlxNuCoiX4dbD9CuY0cKjIv59dItHZ3RnMwqj5g+16QHAdm1+ZWURzR\r\nLgE5a/WOsSEIy3zWmwSKAN6jA84DZfTyqW1ycAwpsdpmhuk33cgw/1KLim6w\r\nv56DcYaF60zwiGTTejhnBbB3yAOw1VdtelGNyUwXHiH2W6UnocNbnHA8VPzT\r\nMU5wlq1jwj/r5s2lJEVxHEeHtRRRNOjmlhN0eJ4YavszDytKUnkQcXlk3EOg\r\n6/jDIwFWVJOnYK/slEV3ZfQOMF2+LsLizUijv+ysEl3lbD4/fMrXVp+tiTVO\r\nYYVXI8zNnfHzeT6A85EFjQQrmICrQWZRIAErgkGLpT6dr1F4Wm2glqWdBtzi\r\nZXx76i+Emetc6LjbqQISeH93/jS7ttDbxxVXRbBeD9+nPSHYLrQSAAQNYveo\r\nv7tvhxiNxxaAPLj905pCviJBjKgfxgqDFSRg/EcdQQ8s5r30nHTobyyLsPfQ\r\nl4E3PCuIMVWfHOlTwTYwzX3Q/hcUI4Kao1IG4sGlJ64kms7g6U1cVP5U6TAN\r\nOOk7z4f4WLcr8LVUNqNclZUpoTLiOsq2fJg=\r\n=SLGa\r\n-----END PGP SIGNATURE-----\r\n","size":6372,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.18.0-pre.3.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.3_1665524312440_0.13321488505456602"},"_hasShrinkwrap":false,"publish_time":1665524312619,"_cnpm_publish_time":1665524312619,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}