{"name":"@reach/visually-hidden","version":"0.8.2","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":"ed24a5bb43a87adc36179283ca1de2c5af4ea26e","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/visually-hidden@0.8.2","_nodeVersion":"13.8.0","_npmVersion":"lerna/3.20.2/node@v13.8.0+x64 (linux)","dist":{"integrity":"sha512-U9KdaC1/YzskqAARqSc/ikOdZRbRkAUixwKIFbTsooUCXK+yAE08ikEoKSmCwDuGXxn7vgCit1ur4i994Ohzdw==","shasum":"2b58a2c69ab1c41838b8fef8a1d7370106a6d69c","tarball":"http://registry-npm.ywwl.com/@reach/visually-hidden/download/@reach/visually-hidden-0.8.2.tgz","fileCount":11,"unpackedSize":13850,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePgQRCRA9TVsSAnZWagAALqwP/1E7c1BpwTmO71kHs3+u\nVfaA97RPkU4AG4omktvruskxbeIyf1PISJX4FgXlsJKPH//afRi3W6bjEH9e\ndcIX0sNz465X2h9hiZD0/0CCWshn1yx6H9qYWTMW+ryDyBUJNfawU1ne7mhb\nSkdSIqLvADB/+uxPtgVyKrrIfwP8bVIFM6XtMXNIlFsHvufnPZd9XxobVM4s\nAKO2v6J5i2Eefj95ZkRYyitqxJgwKrZrmF5C+645/tV2zQpTuuXQ1kPdJ4Co\nGyL/+wVTIh9/hX9orZ3WByAHRLOxjJD+sD8f5PnZunzj4qntezA9DsY9zLNf\n6eYobb0nc5Lhk6B1BChYYlTsMQmUb3gh/QtbuhtqmdTcWouFmCzkuy04dU4k\nK/c9Z4EawADmqPrjbpDZ8U51uIMI4L4qpfI+P+JNVpXz3TotKvXXRfKn9jKZ\n4Vlbcj9Z3AxSAKmBVkUyctfwrggka2QeOt5vGkOLaljjtAin5v2pH5MGVg3N\n6DjKtD0bxXuh5GvyJpGwUMK/DJsUY8E3xgnmXD64Fa/DiHlx8uW07/N6TjOH\niQwFqRI1Y+gkW12v7tBWnFRmE6uBkC/bbwSes24cFrhhoERb0yWHM4ReMcdo\nzAslxF1YxxkOFy/snALCW9TtuXUy2J40QvcJjBF/6DkvctR7dsGWSLGPHGW6\n16hn\r\n=ww2J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGMLG0MKyJI1ETD9f2aDsXT+WjxOVFmvouBSACNmQObCAiEAqTtxUnjOmG1/KzedH6wWDPacCrhfn0/CdgkNQsXXVrg="}],"size":3662,"noattachment":false,"key":"/@reach/visually-hidden/-/@reach/visually-hidden-0.8.2.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.2_1581122577293_0.5975600920284994"},"_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":1581122577412,"_cnpm_publish_time":1581122577412,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}