{"name":"@reach/auto-id","version":"0.11.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.11.1","tslib":"^2.0.0"},"gitHead":"5c6de02db35c1bb69e28d52bf345ea5c5c484013","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/auto-id@0.11.1","_nodeVersion":"14.9.0","_npmVersion":"lerna/3.22.1/node@v14.9.0+x64 (linux)","dist":{"integrity":"sha512-MnAT578+vMtmOy0St9xSPbw2uUEeNKts2aSX+x/xVFCXtot+ValO1weLt5O37IFlIdSGFnqo9jLz8OlfA4rkzg==","shasum":"b94204933fab3114f873aa204936f9982cc68701","tarball":"http://registry-npm.ywwl.com/@reach/auto-id/download/@reach/auto-id-0.11.1.tgz","fileCount":11,"unpackedSize":27620,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTdY4CRA9TVsSAnZWagAAQnkP/RTSPNQ19M3sBYSjmHia\nCPdZLjFJWjde7QqRMpxcTTxvACv3ysKAvt7cn2jWrkB9u2XufPp1yAvQVPkX\n8eGfsX3nN0flCsr+fgq+3LUE7u64QOG1v2kJQ1uKnXdkkIh1ZQlU6gf7VgIN\nNEnLo8Kin37XEtcNSQEs592nDviuVIsNi303FYsK/ol4oCkf3242oHv7svnt\nTVBYjJTzmICgmFxJ6jCsMz+uyUF3EFtW02Izu85KxPWTdhIZYS0QqwmVENXX\niKRJxqmEGcOnldyLYTMGmnlWytmzjmW9xWdDV4AyBApFVgTr/Tt7G8s8nbPQ\nzJUnZMKsrTxtPMWYcNrTI2f/hl8MedQXqL3VW7sxPQf5yoQGHPIlp5NL42h8\nQ/64IQJpGaCyXaTHv6PCjZS6wzhv1ewbqySfPAu2LQzoYrEDEZaXHTWx9fcI\n5xoK+VqGAboWhc9WDwWipsxzl+VcTck8JnEMwMC93AVKu1ZjtssWY6XMYbkA\n24wDbPkxD3U7TD0K0PI8tpYVAUqq/8Ktb3NtqhulfhoHKx5P+mi/l43YJsPB\ns8DgboR7QVZKoauNGHZhH8uBPzDTi70Id/1CdKs40XSPWhdHUhKd8HG3ZE7W\nieOMxs0umRz84Qp2q7kndtr5SnI/FXYcbD/FY+NfW/H9Zx3fyv2ky4WqiqRZ\nerE5\r\n=7iOA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICGeC3brx/wcJajIPbYju4TZndxGO5XD3K4wd+2w8WuZAiEAiHvnYrcJ/5C7EhPZTbSVvCl36/e1mvkEglgrA7af7n8="}],"size":5266,"noattachment":false,"key":"/@reach/auto-id/-/@reach/auto-id-0.11.1.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.11.1_1598936632198_0.22907014577246065"},"_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":1598936632324,"_cnpm_publish_time":1598936632324,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}