{"name":"@reach/visually-hidden","version":"0.7.4","description":"Render text that is announced to screen readers but visually hidden.","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/visually-hidden"},"scripts":{"build":"yarn clean && cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json","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/visually-hidden.esm.js","typings":"dist/index.d.ts","gitHead":"f460709e283a60dd5ea62952b7feaf88546a50ff","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/visually-hidden@0.7.4","_nodeVersion":"13.7.0","_npmVersion":"lerna/3.20.2/node@v13.7.0+x64 (linux)","dist":{"integrity":"sha512-34jDe/Pv/kIfgyDZcuxB2gmovU11eMsKZn80ByrwLL0Bc5dTfmfS5hifLvBcsfwznwLKui1qbbsJ+E2OqvDxnw==","shasum":"5d2b142529e5ed64df35ed31e95dfff1cf22b2fb","tarball":"http://registry-npm.ywwl.com/@reach/visually-hidden/download/@reach/visually-hidden-0.7.4.tgz","fileCount":11,"unpackedSize":13808,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeK4jsCRA9TVsSAnZWagAAS3MP/2G4wg+TtA112weP4UiZ\nmkF21HGClB6A73IcaSBnAhKHLQolACmpeTg8o472g7aeUqUNFWc9U+IFrg3F\nt/fodGnVjH7SHEsDGY1U4yZVmqxi4Z9ytWZsXVGTAG0PXXQPeO7NzRj/HzKM\nq17GWUVoTdTr0jWSaVObpqaLo1oUUhv0KAnNhTHttmwrWbnAzbes0yFX1atI\nJb6ZHS1Zy7SngjXAiFqHUnh2Hr/lnmXj4An6VrKOUfAuZS5TijjitYXoZsDX\nezcKWxyV9NswxwSdiB2049ykT6UBj2FpJwHkAvoan1BYSYTcew7c/joEFT3l\nYsmm8lJQ/+csWceDWAJKn6FRUVaAxnMFdlTQE3ejWDzhT9D6WABQ4VwAQC8q\n13gFXEBI9K8R7nd7RkAQAdj8JVXzFf6nVVrposfZ7t7Wkf/qpuXcvzgJxFlr\nSpYP05RbVwb9mhs20v4WtM2ytrgrte/8J6tvDdB6DVJkOEvDCASEj8gvLzpB\nBdxH6btyaumEHLfZjv6LZtRGJNOxbutEMn38ETbYeoQqzNQItdbR0BIqgqZf\nIWBMQ+CWLcJRaMT4yLRXyiJTTjoQEMsnDVF9h/SYgSJhaSGlCM8gpnhdyybu\njgjQVcC8vGtMggimwE1EfH+wnmKdiiNEbKl3oUcjWV0TsFdX6nT1RQrr4g0A\nIXLi\r\n=rg6N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgZDow3PB5qxCKLIc/DmfFLFYlq86EVDXXxVpJXvEGIQIgYsAWjcCSm3H56fIkp3qfVwequAo/vjTeE4zB3rLCEfI="}],"size":3622,"noattachment":false,"key":"/@reach/visually-hidden/-/@reach/visually-hidden-0.7.4.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/visually-hidden_0.7.4_1579911404023_0.0710056599869322"},"_hasShrinkwrap":false,"readme":"# @reach/visually-hidden\n\n[![Stable release](https://img.shields.io/npm/v/@reach/visually-hidden.svg)](https://npm.im/@reach/visually-hidden) ![MIT license](https://badgen.now.sh/badge/license/MIT)\n\n[Docs](https://reach.tech/visually-hidden) | [Source](https://github.com/reach/reach-ui/tree/main/packages/visually-hidden) | [Origin](https://snook.ca/archives/html_and_css/hiding-content-for-accessibility) | [Further reading](https://a11yproject.com/posts/how-to-hide-content/)\n\nProvides text for screen readers that is visually hidden. It is the logical opposite of the `aria-hidden` attribute.\n\nIn the following example, screen readers will announce \"Save\" and will ignore the icon; the browser displays the icon and ignores the text.\n\n```jsx\nimport { VisuallyHidden } from \"@reach/visually-hidden\";\n\nfunction Example() {\n\treturn (\n\t\t<button>\n\t\t\t<VisuallyHidden>Save</VisuallyHidden>\n\t\t\t<span aria-hidden>💾</span>\n\t\t</button>\n\t);\n}\n```\n","publish_time":1579911404196,"_cnpm_publish_time":1579911404196,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}