{"name":"@reach/visually-hidden","version":"0.7.1","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":"dist/index.js","umd:main":"dist/visually-hidden.umd.production.js","module":"dist/visually-hidden.esm.js","typings":"dist/index.d.ts","scripts":{"build":"cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","_id":"@reach/visually-hidden@0.7.1","dist":{"shasum":"60500df5234684476bb1942fd7f2d0013306083a","integrity":"sha512-yDpjvaad6lyV359vhpY9+zow6GvNpufewmwRBk8+SKj+uT6/AX+OEYmWy97SsZf6H2neEk7u32fKUymWO5OBbQ==","tarball":"http://registry-npm.ywwl.com/@reach/visually-hidden/download/@reach/visually-hidden-0.7.1.tgz","fileCount":17,"unpackedSize":18534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFj+rCRA9TVsSAnZWagAAE8YQAIxi9KimDpVPJw1mklga\n/qKDrDHKmoEIB3iJc3cOiJMXrZT2zjDh0MVXMIgZ79ZYcAYAnv95lS7w7umY\nlJGZD5bahI4mN6cVh1kKF8WsHDv1Pv/ulb1vjXJM+jCqk/1wSJZ8but72vDV\nmLmaJsdzIz7XOoCi9R+Hh7rwMmLDp3b7ejYXpW/dIAaEOtx5OSfGZbrR509L\ndliSdGv9//vPv11FQTCpDjmbIWA4kkdr+Dao84bhneafDPUWxyzqrj6SKio2\n5Tz0QwGFWZT1wgskD5lCvv9/w+dZvh1YQjo1dg1B2e6mXXBK6sQKfULC5TEV\nBl5j4YpHsez/+1eFWdqJj2Lx+xVr2z3/YOQO/SN2+FGE9rUodbCyHxhfxEMQ\nXjjj3MDvVfCE23s9TS33vGHaBST9+SBLN0HN7l3envh+XFEX8xfJ0C7zVb42\nTynoo2PAuvXeJWumf+9HtosN8YbihDNMtnSe4bsBSu7AotwR0xaBNIAOSiAX\nzCB9HOvzIZN1Z482r0zMOgDjsaKdEE/v78tCzzLK3cr0iSsgFadbTjVfhfuR\niZ6IXQUHgOd440LH/3UZHJXrneOnR6WOti5pylXwDfkfm/01p0SUFljh3DDN\nJW6miG3vi2jpgetWl5NMXxrk2BOhuXp5V6dImGpaBWuGIBwPrKStMhZiYUfE\n5kWg\r\n=JZG9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDih8eZJFVQrIgxVd+IuuFgWFDM1yGMFJ3man26XDk6RgIgQREBpuQ7KISKmFhjuCZlH45Q0wOM/4qnlP99p61QHc8="}],"size":3509,"noattachment":false,"key":"/@reach/visually-hidden/-/@reach/visually-hidden-0.7.1.tgz"},"maintainers":[{"email":"chance.strickland@gmail.com","name":"chancestrickland"},{"email":"npm@mjackson.me","name":"mjackson"},{"email":"rpflorence@gmail.com","name":"ryanflorence"}],"_npmUser":{"name":"chancestrickland","email":"chance.strickland@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/visually-hidden_0.7.1_1578516394943_0.04103526643610822"},"_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":1578516395113,"_cnpm_publish_time":1578516395113,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}