{"name":"@reach/visually-hidden","version":"0.7.3","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":"fe739beb1d94cc58c4e72f88ab58efa58e0de8c8","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/visually-hidden@0.7.3","_nodeVersion":"13.6.0","_npmVersion":"lerna/3.20.2/node@v13.6.0+x64 (linux)","dist":{"integrity":"sha512-1WNbl1OEr923R36zopBpFODhknoUzY6EtFQYp2nApf8pn2LKyrK2hgQlfl+KOKISuzXgTNoSWTGDtW6glGPA8g==","shasum":"cb2b51ce8dcd7da980a2cb4581057298dc6e2e10","tarball":"http://registry-npm.ywwl.com/@reach/visually-hidden/download/@reach/visually-hidden-0.7.3.tgz","fileCount":11,"unpackedSize":13765,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIkVCCRA9TVsSAnZWagAAFxIP/iQyJeA2DyKHF6Zl8q+7\nhoz7PtimrzBPvdT6q21MybB1V4U30fsGB7CRZ4uqZ8Le1E6Ej9dzLK85+ViY\n+ApwhKzhxsTJRBTqONj1XLV4JG8TcHZ7I/u0yoJY9dGetjtzgLdMS7+neuoR\nHpbqUod7Uk02duME6ftA/QxUlk1bc6Tz9mLwi0GdxM8pw6t6/QpG7vkKFOls\nJT8EO3i/3TsRL9Jr+sz00QWrYQ46gqn9/yENRCG9S0o/YG6azUvDjiMyS9xH\ng/5rXB18NMHemSkYVE0kJnvdZBwfH96phjGwSyFBbS1crFDbdbgyWC77VRhJ\nRgXeD4akVC5a4Q3KsZJ4u5CWUzHw6x5ideLNFY0C9J2xinV1+pzLPvmxKVQH\n2gtemDPGlYvi8p7lfkkWAn3TNp/6z5QTXH68OtlUSqC2mNN6i/EutxsCAPdK\nta0uHTMLdC+HCtBo0WEBgKbanqepknAo1Lu4P7ZGwbjcS2cESpN0h7gyRo03\nQ/n8wZ+rbprl6aahjs/dHEZQV1Kj1/Um2yY/UNABA5X0i9B4hoyQpMfoDPdB\nHSOMGdsiAhHKCQ9jn/566ktI9+Ju4Sf5NXZWJnkiN1BqNb8EExUxCiXVWr4m\nZsi841tA5r4S4SWRw1M9biHRVTHnFcjmpSTKtskruMB8a3QwmY2Eh5QSgJqD\ndO62\r\n=DVjk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA+m35a1bkogUNCf11qQ/wTVVisRe9xGv6ex/0BldnCsAiBqkvdrGsPBiApIN6cqVNQ2tSwr/Scmw3iaRzwWFu3KCQ=="}],"size":3601,"noattachment":false,"key":"/@reach/visually-hidden/-/@reach/visually-hidden-0.7.3.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.3_1579304258221_0.6247017612356329"},"_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":1579304258348,"_cnpm_publish_time":1579304258348,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}