{"name":"@reach/visually-hidden","version":"0.8.0","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":"7702c46373c7f11adc21184e7def9977203e9326","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/visually-hidden@0.8.0","_nodeVersion":"13.7.0","_npmVersion":"lerna/3.20.2/node@v13.7.0+x64 (linux)","dist":{"integrity":"sha512-I57HouNSVKOZCUUPCs8Pvzzy45eyDQS5Yl6xY/ng0XYwOzwxCpbC7TGGAv1yinIebLG/uoLoUNJA1/SOnKx5gA==","shasum":"4ec0da48ac604ba2bff11ccf7ff718c2349d0dc9","tarball":"http://registry-npm.ywwl.com/@reach/visually-hidden/download/@reach/visually-hidden-0.8.0.tgz","fileCount":11,"unpackedSize":13878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeM140CRA9TVsSAnZWagAAdg0P/2APqnZLpCdNrchuMz9W\nD60N+b/WU288yS21adnTrNTsBwuwqcA3vM6kC222rwhGjSRrB5vbm/t8DKpD\n9YpiBVvjFsBMrb2PhaFuhMQWiLxO1HBz3LPn0hspMRjZRYRgBwzNI0MYnkR0\nMFvtDTyHwG6oVZ2V02vKrGLdjTMeA+qzR9GDRpaJbC8jbCA7TtAQGO8U4S7d\nyBw7xnJzlfhnOflFYkNifZw4UBkzViBE8HIf2LgXK4FmTJzme8L5ISI++yGb\ncxRIteldBdVF+Vdw5ERnSH2Wtp5uHH0W3w9s1umZfx1fk7oRaYSm0Ca5jpNs\nLuGFryCJeyaL/3+2jqJQByEZC3D0rIUbmW0ymRmiA4S7uEYYOSFlKG9EYydC\nztgAhjSPVP0Qt/FCTL/KojhhUyCDTsu+NebbAPwSHE5UPYbF6n6HP6QUfite\nrnLzAT5dAQ0EqRL0nEGx7YEp0gCpiQb3+varK34mPLXkk9prNEMCNUbLS3Z9\nIzpwy+IPDDGOUM0IqkQ2djvxooc2racH16XSCQJuLFUoIlWvTHoI7f5gYaQ3\nnqm3aS7ZHrBOSz0gCRGSiApyz+0AwrU3fCsU3yUPpaLPpvKIMIj15zjm1mKF\nZTeiTN8iCg5SeKKP1dChtFMhMxBVHpfMRbu/WP+99Mvv0K9VAN9HhfjoN9Yh\nD/B9\r\n=Ngi8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDU3iE4PYMl5AuMt2RC0+cEq8vwbxJGwE9nIwfS1dqXXAiEAtar4vezI2YgYFdlpLMUBZIGa/doY18WhrcROULWcx8E="}],"size":3649,"noattachment":false,"key":"/@reach/visually-hidden/-/@reach/visually-hidden-0.8.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.8.0_1580424756310_0.6970328256416183"},"_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":1580424756440,"_cnpm_publish_time":1580424756440,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}