{"name":"@reach/visually-hidden","version":"0.7.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 && 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":"96cf6c191cca0f2cbcb7ff578f15e289efeda1e2","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/visually-hidden@0.7.2","_nodeVersion":"13.6.0","_npmVersion":"lerna/3.20.2/node@v13.6.0+x64 (linux)","dist":{"integrity":"sha512-/MTMVwjMX0ERmEvZ07L/Uk8A4/HW4u1kZrGyesxhEVOYaGzx8Zm1ker6iiMyQdZldR6HPU82on9CJGpHaIjGEA==","shasum":"fb499a96e2c98734eabada6b37ef4ed78b43ab8f","tarball":"http://registry-npm.ywwl.com/@reach/visually-hidden/download/@reach/visually-hidden-0.7.2.tgz","fileCount":10,"unpackedSize":12895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGQvXCRA9TVsSAnZWagAAxE4P/2wIqCJlBhnrGjqrKpG9\nN789qXreDoVWOjTPN4cDhG89TNkDSO916OXr52rJfH85icR8znWfeP4BaxkK\njXn3ZGKVK+TOo0f6LdVZpv08fgIiySlayfrK5kQyIdDTz5F604hAYWZdrLac\ntfXnT9X/2qXERBxkyvjxZvUY6kROgc2pqiyzjTFTJ6FkCvdubE69dw5FCSu7\nSUU4T9fYQmIexKsazQjMPqtCY8omROrp0UDqp9KaXyxtFwgsIEspn5Eza6hB\nL5IvtrxChK4C8tOXwC5IbMUrNE8CfzRC6iAMLKOd6x7sJdgMzrrJW+NgW1Kt\nVpfktW02aDlEZBlsGypx+esiuJYOfHJGUKEvsBrc09mmQ6K4dUinYH5nbL1w\nM3kMeAPYa2R6nriVsy/yWqKm9CIFzaggec8vrcCn1xUxe97TVrbppadFuZ4L\nxxPQhGUJcv+f4FN2YG3jvAaO0u0MXMqBNUw1h8i8Q1w/WbxJfod8yJZftd94\n1VwWUTfLIq7GJxmD495sJXvPlAgJTil8IFDrSTT2v7lkzupv4/ENH32Q2yWp\nyrsafBXajKGwK/ZTvSZwEf4KmVLQ4NeHibmSFtC0dbN94dhGlSDfaWUgHY/I\nqArEF2feYvpROPKCNR9gYvZvS/q2tn68670VzrOmrCbbF58Kk0Mxqwgol3vp\nGztC\r\n=doLg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGzl8iJv7ORBNgI5UyjMMXxYoGCmg9QNLJUMjgtFKacgAiEAqANJLoB7YKbwhzj48aFflp4NCNJw4a+fXZBEWqSutfY="}],"size":3333,"noattachment":false,"key":"/@reach/visually-hidden/-/@reach/visually-hidden-0.7.2.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.2_1578699734770_0.91249588772669"},"_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":1578699734900,"_cnpm_publish_time":1578699734900,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}