{"name":"@reach/visually-hidden","version":"0.7.0","description":"Render text that is announced to screen readers but visually hidden.","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/visually-hidden"},"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/visually-hidden@0.7.0","_nodeVersion":"13.5.0","_npmVersion":"lerna/3.19.0/node@v13.5.0+x64 (linux)","dist":{"integrity":"sha512-a5iyXugsTO4U3o3NBHog9lrWYtqXKWZG6BhtSMVgjq1yEbdXHB0TOaK4Zu1VrlLq9/0FKpm87hfzFj13AVzn1Q==","shasum":"6e5591fa2ca0431d88f230cbdf8584b57f4ea49e","tarball":"http://registry-npm.ywwl.com/@reach/visually-hidden/download/@reach/visually-hidden-0.7.0.tgz","fileCount":6,"unpackedSize":4928,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/vDqCRA9TVsSAnZWagAAHHQP/j3kHo3RuOrIh7Mm7dmc\nPcS41AUZF1OW3PWGXlZwayN5hAuNuh4//K6bHxeCd1cxev7C+nUu9bSDjTXZ\nilanIZBFfbCkBmceWrvzMyprjqDTyRk8xFAsDJkG9qjr/QXSh4JhdukqnsVR\ntPWWlD4Jk3+g5v1xLhh9LSUqBlkVj0dvSxqa83DGryIUOPeRXHaf4OoIqLy8\nbqvC9jedFWZa+vhmVB/UER1LtqZAqcbV7/11lxxtmUJAJOXv4NsCrHDY+V5A\nRseN14t+OE0boRa9lwKkn4vL8ZwzIe5hNMGZ29iedudDHQ2zSLvL6MByfKaV\n7gHIjYQmqzhuSnMUwThgo6BraIYaZ3iuBABS6ATwEWcGHmyXEBp3unn+IlC1\nUSjHGNi6o++R/sh6fofsp/fUS30ma18KVGUPY6+dss8rRk0UdLQPPpi8mU03\nctK/4C3RWYmUsXg+2mLzabcTvICUpJmhqpDbxj+aaNobaDol/OZnvlfmnbnc\nCKcVkEEBI58SKtBa1glapCrAK3aFvA9XwUwM/kXiSCuyvUmCk/xhlHJU4dus\nwopVyYJRv49UILR9H/cC2tHIUA3FX7EXkAx41NEnibqiG1Sh5bDLCEQk1k1k\ndh5Ld8O4tctQSTOJ+I+M23AuBHZvtjWmxO5pXEs2Jxtm5KpELdgMrGA1V0g9\nrv09\r\n=p2B3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEzdAQqad4msaR+HXTosKhMGJoKYBGpdgMt3cYzTPAlAiEAuYC+LKFUHHMB8dLPaBeXP9xex6U5EWxTN12E+M7q6+o="}],"size":2126,"noattachment":false,"key":"/@reach/visually-hidden/-/@reach/visually-hidden-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/visually-hidden_0.7.0_1576988905785_0.9387120841648122"},"_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":1576988905902,"_cnpm_publish_time":1576988905902,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}