{"name":"@reach/visually-hidden","version":"0.8.6","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 && yarn compile","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","dependencies":{"tslib":"^1.10.0"},"gitHead":"0c71a018a11055b17815f0fb127cdcd981cd760e","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/visually-hidden@0.8.6","_nodeVersion":"13.10.1","_npmVersion":"lerna/3.20.2/node@v13.10.1+x64 (linux)","dist":{"integrity":"sha512-j06hR/W14UqFyP83NMnDqsqdajcUtbDj+xWV4+OB5kC3LnmACZuP1oHiKjlp9a+hRWt+WypR8eVv0MMFVH2GpA==","shasum":"0370bd444ea767761059e377cc0b40cdbee3975f","tarball":"http://registry-npm.ywwl.com/@reach/visually-hidden/download/@reach/visually-hidden-0.8.6.tgz","fileCount":11,"unpackedSize":13840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYoDMCRA9TVsSAnZWagAAckAP/0fWdwuXUnRbpGHrduzk\n4UAJlmCOA0htz5xvYXGeUKZM4KgV5D8F4smsNZR58E5PI3dph2i4QG3k/Z3n\neX9IkgoY0sMmVapWOqgaeUWJKG8ZmEUlKgeVliLCTvx2Zhl1Yx6egwSma5iO\nLAyybivBmtt3AQtdrETp0GIDrdfcY9flD+q1GFPjUefW/YZm0NcDax9amgLz\nENpzo0QDFNTO+kPHKkFPOyicc61F7ovXtgvkZ6S0jSjIdbAQZ9Edh1kJG12Z\n5VXBH01iUV6/hylNAcxRE6IaGMok45dHPdyRo/kiVHF/wEcPbqnke3pJjEai\nMt18JF1awlIxTTO/ZJ4LVMQ8/DuCeW+oU5pfzoJYf1cgyiU89kgyPJBG5diX\n5yeb6qezW2EQxZdi/o8iHqpOJruaEUjq32E3qK30tbn+tNLJVwKppNat5g8D\nYdeWw7Vwk4D2VDSjbD2GoOLZizjiDwQhnwKkqdBxsK1znrj0yp4gi7paIdv3\nuzs5eRC8ShxZmYek+6fbWxqyhFBTVypugWCNyA5Pq3xK2xremQx8KQLjbFSI\nEnwVIbMBDeT6HHo7pA+Cjsak7L0/qfSJl7hBtW22kd/qPL6U9hN1vlODZik5\ncBnO+0nuBGcK/xkWdRa9V0YOIwDzLieeHVKPj8yQhhHdoJEG4kPOdB22+VP3\nBiWa\r\n=2Cyy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBh8s9c7AK6oz+GprIDMWd/aRvywnjU+miKFibv5N1kvAiBrePAeqWmbGYYnnaNmMEKe+VKqjbs9bHVB6ZlbIpiqDw=="}],"size":3662,"noattachment":false,"key":"/@reach/visually-hidden/-/@reach/visually-hidden-0.8.6.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/visually-hidden_0.8.6_1583513803814_0.061654207945406325"},"_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":1583513803942,"_cnpm_publish_time":1583513803942,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}