{"name":"@reach/auto-id","version":"0.7.0","description":"Autogenerate IDs to facilitate WAI-ARIA and server rendering.","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/auto-id"},"main":"index.js","module":"es/index.js","scripts":{"build":"node ../../shared/build-package"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","gitHead":"c6c10662e6eaf229594e4d6e6a38d8c9baa35ffa","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.7.0","_nodeVersion":"13.5.0","_npmVersion":"lerna/3.19.0/node@v13.5.0+x64 (linux)","dist":{"integrity":"sha512-8NU8NKItNBBscC7qsTvRFCxtHMzBy/wFTrPkAVqraUxfEhNc4UnA4vr1XsduTNfHRwr262+NbDTSeO9EqTRIjA==","shasum":"da7f11c11bc5aff809ccec9706a9f5d8da6052dd","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.7.0.tgz","fileCount":7,"unpackedSize":14366,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/vDjCRA9TVsSAnZWagAAT2QP/RxcGACvT88jphA+lgBX\ndC0MpOj3jBBvWQWN7M7Xoq2u/XjNee/EraGS95bEB84ol0gMPpPmsk4xebEo\nFI+m9oI9uSFGNYuCx5xD5SVzbs0aIoz/O79QSLKb5pbcPOHjJ49KuihlT/pr\npw6KmUWnxqH+fOpwM2865Vu2KuCIMK6vUF5Xb04XDBmjB12G3DtcU3VF4HdQ\nPUIvlbH1e/mwcduLhsmx4CUJ1FTRM6VKKDQr+wOussXhMOEzQD4GdcxFeKyq\n6UhZy7vBHvRqdKtiR9jASQ7e+LO5E75P2qfMCf4RLjnsf9lVudUFbvRNlnOW\nouGxqzScOpY/JYv3c1ITtwpauzNnBfj3SQgz7WCgHArwj9AgOqFS+JqyWKac\nlUU3cUf+POwwQWbbUU+/5WAGSS0M5bWkCXV8rChK32RmJdebGGo9lM4rc9D1\nnWamIKaUb3ljSX1REVPRXuN2NuIho/a7gtk0gKXYWO9CUTHu+NtQV03BNuCL\ntelJ287RFpDQnFEjy0rFCyZKbO5CY7VLacexOhSEPThcfckb3iUtn8dmmAT8\nZmaxXjSMBVDEdPqECodwofCtozU9IJnrEWK8qQWxBIofWsTD5E5+TnBIGApX\nFv0sxeLpuVmi9u7rmytJt7ZImCaQaYLFphNNO9Qsw0EPF/Ltra5iEr3DPK0p\n0vWW\r\n=8r2K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDX/Kj3O8R7kL0Lg2k6mXj2XXRC8xNGmAZWGsSuqR1ffAIhAPLabSNNAMj9OyHCGORRJnfXkgjjkgAvsBRhpQTGFEVe"}],"size":3665,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.7.0.tgz"},"maintainers":[{"email":"chance.strickland@gmail.com","name":"chancestrickland"},{"email":"npm@mjackson.me","name":"mjackson"},{"email":"rpflorence@gmail.com","name":"ryanflorence"}],"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-id_0.7.0_1576988899375_0.6492521311286068"},"_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":1576988899496,"_cnpm_publish_time":1576988899496,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}