{"name":"@reach/auto-id","version":"0.8.6","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"},"scripts":{"build":"yarn clean && yarn compile","clean":"rm -rf ./dist","compile":"cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"main":"dist/index.js","module":"dist/auto-id.esm.js","typings":"dist/index.d.ts","dependencies":{"@reach/utils":"^0.8.6","tslib":"^1.10.0"},"gitHead":"0c71a018a11055b17815f0fb127cdcd981cd760e","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.8.6","_nodeVersion":"13.10.1","_npmVersion":"lerna/3.20.2/node@v13.10.1+x64 (linux)","dist":{"integrity":"sha512-lohwxy1uqj74p05WJDxMpo5paAQoM0r6MQYuVxR4U6piuGG67ggEPNVG7X4lQhi2jbeB6wvaPJiBVgikZJ/DIA==","shasum":"34ecd120186960e3980dbc34cdace8e65405ea4e","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.8.6.tgz","fileCount":11,"unpackedSize":27823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYoDNCRA9TVsSAnZWagAAs+sQAI88eIKxOACLt+tfBdXM\n+LJLebccRuUtxu0dR/8mRdGcrZjEUwDMtsZM76QXxqzrDsQUOibL9TCAg1dY\nuXtKhr0NLLXIBt7mWQOooOLxsPG2Gyeey7r02GKBTAxgvf4mfDleDd50g0hz\nZR1LSXXoUB9kotUDP/ZGMO1WtDoG8XGmyOKrf+cE0izNmwdtwy6x2jDTrh/s\ncWbczCwyyV6sRHGb0voihqFq4pWU0kInwPeLmmqcE2wHM5Nmh2sd0MDfuMsW\nouKAN1xQkwWzIRAou7MV3+/QTt+z/iQQwSJFwNlg2A09VBd4jpG2Uubthes0\nYFd2met6xE/gvNtBJzaC0KCv/aiS6/7HWddTEwsjCIqS2OseP1YdXt2mrkz0\ne6cOGlU+X4TvQ9JYUK5iCnlpIHUNrKMdJsbPJlAYrupYo99ZoOjXdja2u1vn\ndzosHJ0s9xwY4EPWJSLlB2FaD1wat32l9c1/ZoANJUMKUB1bftosbN7lJRXL\nhvM41VfhQ/ZPXp5TCpnFCEnLldaFo5JFEJLDW598xu4tqRNVVhIHaFYovEXP\n7hxPUd5N/BW65+Idviw+KVl1WZuXJSKipjusPYfzYF87sf1Oy516FsizZH96\nHpD3M72ahABHD6KqQnbJH2BDTPSvqpljSiJtDwT/93s+AjMFJ/gzm7yL7UEr\n4q0o\r\n=7A5b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbpsCIa2vm+5N5ERI5FHYHeeJCTSb2UvBxvTFv5c+9SgIhAIRM2nHX2DIdAx2DELE9jlLnfUFsgVPwxSJSm9OoMr97"}],"size":5315,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.8.6.tgz"},"maintainers":[{"email":"blainekasten@gmail.com","name":"blainekasten"},{"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.8.6_1583513805347_0.7265631848839391"},"_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":1583513805477,"_cnpm_publish_time":1583513805477,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}