{"name":"@reach/auto-id","version":"0.12.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"},"scripts":{"build":"ts-node --transpile-only ../../scripts/build-package $npm_package_name"},"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.12.1","tslib":"^2.0.0"},"gitHead":"97b32791ce33f822f6bc9f07f6cebfb343d8032d","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.12.1","_nodeVersion":"15.3.0","_npmVersion":"lerna/3.22.1/node@v15.3.0+x64 (linux)","dist":{"integrity":"sha512-s8cdY6dF0hEBB/28BbidB2EX6JfEBVIWLP6S2Jg0Xqq2H3xijL+zrsjL40jACwXRkignjuP+CvYsuFuO0+/GRA==","shasum":"2e4a7250d2067ec16a9b4ea732695bc75572405c","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.12.1.tgz","fileCount":11,"unpackedSize":27591,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfwUDdCRA9TVsSAnZWagAAbDUP/iogCPs6QvxHcI5MdfZi\nfwFz0Qzuiqr7ZNd3UJq28YfIfX+UeLouxygEKN3vKTNWzVD2LMMvalVbhKdk\nPgtM8fg6maxH9TxWboLyhESbO+ZUdC3IfOqnnnExtWfWVTkmKSJTymy/QV32\nS063Wg8itdVgMV2kJS5fYqSIKqojIQDenVAp0qfTVph5CwohrJQfPV14sJfd\nUNEeDFgusybXC4Oq87VfYQ0LvG1Sl3pLWdT+5E6GP28Djl2HW7Do2PvC7Wxs\nubbpIf19ifgzoDCJibPg2v6W3hPbJ+UL/g7WB0P1uNOA7+ANsTOfIKAi+J95\nKsA+NcnGO3sAxdqfk+iPTSX9kqUNO34aENKp/S21ATSLy2Hc2JRKBzurqGTp\nuo8wU8Xg/LGaSxH2PYt5IlQ5k0NHY74MRvS9YMAnQlL6S55QaTZPoXzEsQ4/\n8KntZH/yapGdn9qtvvhGct9EbFVHsCVXihlIUwvIdYhJZCy+bZeRoIgAF8Vd\nzmM04ZlpYGj4S/GZNZUJrwPWZp7CtSV3phWihXrbD3yW68d1SSQeDOvr5HOE\n2dxqpbxA2c/2kNTFsraLp83YJh+N4niXjndIVCe9oOQtg4176YLzy1gGhrYF\nWrznKPoYcLSbeQ6mq17cbtmRsOCB99ERBXSA7GqmEL3Z/M8gmTJBmi6RMLEJ\nLReS\r\n=x9SO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICKpaTxlAT9zthewoV1f/S52Ezi0OHrdYvgZ/fL0A9AwAiEAyDTi065+sdBf2YH6B7IPoL2EuZRHPHmj+oBfNexNN/4="}],"size":5280,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.12.1.tgz"},"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"maintainers":[{"name":"blainekasten","email":"blainekasten@gmail.com"},{"name":"chancestrickland","email":"chance.strickland@gmail.com"},{"name":"mjackson","email":"npm@mjackson.me"},{"name":"ryanflorence","email":"rpflorence@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-id_0.12.1_1606500573136_0.5830019992236404"},"_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":1606500573266,"_cnpm_publish_time":1606500573266,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}