{"name":"@reach/auto-id","version":"0.13.1","description":"Autogenerate IDs to facilitate WAI-ARIA and server rendering.","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/auto-id"},"dependencies":{"@reach/utils":"0.13.1","tslib":"^2.0.0"},"devDependencies":{"react":"^17.0.1","react-dom":"^17.0.1"},"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":"24995121ef36d6d1768bb3bdef6e3353d905a167","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.13.1","_nodeVersion":"15.9.0","_npmVersion":"lerna/3.22.1/node@v15.9.0+x64 (linux)","dist":{"integrity":"sha512-ItXslAcn0cw9DdLpInd/QfBSWmVmUr7aQRXsXp7U9AJ9zTdv1L6B/DhkA1RowJhBxJnFJ249CAFbbYOZVgFFDA==","shasum":"546e90bd349cdf20cb3bf1a29874c920f4942877","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.13.1.tgz","fileCount":9,"unpackedSize":16201,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMq5/CRA9TVsSAnZWagAAxEgP/iOGJN1EDLZKkO6ada+c\nB+bp6LD05ra3OMGMN+EG7cHQ1pFgmHbXih5mEjghANfzNLOB8vPqD2/LG7Fi\niTzVN4eEPj/Q580S2VJCFGQM2IbzOmnKQA2kmymoMzqo3EEuTjuoGXfMVaZR\n4ZLbxIC4LPdhvIGz/FwWmvXDJA/rFSZBLd+JVxpz2Qs90suzsNj5303FX/6w\n71SM/bPlTBQuFmD+s0mQypUy/QlV9BqkuVEXW9wj5EZ6LHNnO/SqMMQTYy2w\nZ1yjtDo+Ig3cdYEECp0+0ladEVLS8OAb1v4x6KzG6ZZ5ifPfar0pe1caW1Ql\nafePrZhLkNDab2/xiQ/npp0I5/5nXHz1XXlVwVCew/v4pBeQYtVCCJFZStdd\nE2aG2A6pID/ZA3iXko+grO2p7EvNULDT0QC9KtS8UVeCfpWaZdw+WSYVed8L\nTjyDFGHO+HDRjiyqFiybfejM7elUPieZN++OvFq+8UwFAMcidc6Gw4DTGBog\n9Ys56cGd0o0scHlep26ax/qA/cLI8VpLkswnLmF/iQLVDaAKdmlkUGxI9Sh+\nikxoh4TKFOc8fgMZxmfdzLAy5tCRWW6Titefz70mdjKdn1pnQv9L+tQHu23f\nuOLAEbWeMiOKHGegwZNMKH0asBiv1vAGe6hWWK+G6Fj7LdfZVSSTkLImAGGT\n8Xo5\r\n=8iQ4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHdlBbldy35O1W//+yEWSaqrv+yOhB20v6DxlXzQP5FOAiBVzxLeeBr+QmsbxUEKeIKD2p8QqFlh5klkbcUomHvM0A=="}],"size":3910,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.13.1.tgz"},"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"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.13.1_1613934207237_0.6756265775474251"},"_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":1613934207392,"_cnpm_publish_time":1613934207392,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}