{"name":"@reach/auto-id","version":"0.16.0","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.16.0","tslib":"^2.3.0"},"devDependencies":{"react":"^17.0.2","react-dom":"^17.0.2"},"peerDependencies":{"react":"^16.8.0 || 17.x","react-dom":"^16.8.0 || 17.x"},"main":"dist/reach-auto-id.cjs.js","module":"dist/reach-auto-id.esm.js","types":"dist/reach-auto-id.cjs.d.ts","eslintIgnore":["node_modules","dist"],"gitHead":"e4c6093db14e3cc24c26794a002dbd8c866c0387","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.16.0","_nodeVersion":"14.17.4","_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (darwin)","dist":{"integrity":"sha512-5ssbeP5bCkM39uVsfQCwBBL+KT8YColdnMN5/Eto6Rj7929ql95R3HZUOkKIvj7mgPtEb60BLQxd1P3o6cjbmg==","shasum":"dfabc3227844e8c04f8e6e45203a8e14a8edbaed","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.16.0.tgz","fileCount":9,"unpackedSize":16530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhB4WHCRA9TVsSAnZWagAAT6YP/0LEgOoeCnfsJ90p2dVr\nWOZk4BlMvtjbM+8eRBDVDObiQXtFkHfPeEclNTDR2IECjkKg6VbnP1/plcYs\n/liPAc4e8Vmkqwu679XIrLkdsLpXq02QQeQ2w/6XJLEbTvqnQ4UPwPNGpJiU\nBOQH6UsXwz4nvCB7YZ5Z9ybF6oFNEMhavQ3HF33f2ovyIFc3SMYjspxv5KYx\nOwRnJAH2QOhSTyOhBcYmYvX/4xlzAxRuiSJFNLoFGe/krckn9SL5QtmC5TBB\n11mmjyuQaEKcNB4rMC5TfEzfzmOQ/eVW7Ipy4B42YPg7yZ30KVZxumAdUcET\nBDQX/nZCGO9QjdkSc6EpG0l7JlNEX6XzdMDmdrvv/BMDoGsEFgAUl1XOYwpZ\n5PdaBOEK1pz28VCpvz5v5vwOJMwnRndAeta/iwPefWTCuTnDqE6qxlrunJVv\nrte3RZW2y+2MNf1f/dQWb1BKSNvW1PXKLG12ta0BaX6jt3XpQ7pzQF7sXc0c\nq4tFe1lFr5rTBKOkKY2aQ9GUG11jrHxwYbL2SsUAiQEyQ/sBiz/Tyi1jITdY\nZb/7hIMKB+7UtM2KQfU3CITS96085y8VQ1JFgkaDwLWwkyA0poD2An0qxrtG\nWpEtIV1rgdZnavj8Df8jX2jUWqvUMeZsBSV5ExQ4wveWOm0VqujTA+ZwRI5G\nNCyQ\r\n=ePO3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICY6hxpAlE2VgxCqzXBVEU3B39dIKUm/s/ExTmRSiy34AiEAtfDg20177jMJWrK43f1lMrgc+v0rRzWUKoloWuabFkY="}],"size":3957,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.16.0.tgz"},"_npmUser":{"name":"chancestrickland","email":"chance.strickland@gmail.com"},"directories":{},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"chancestrickland","email":"chance.strickland@gmail.com"},{"name":"blainekasten","email":"blainekasten@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-id_0.16.0_1627882887837_0.690944897176446"},"_hasShrinkwrap":false,"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","publish_time":1627882887978,"_cnpm_publish_time":1627882887978,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}