A React component for adding visually hidden styles to elements
npm install @accessible/visually-hiddennpm i @accessible/visually-hidden
A React component for adding visually hidden styles to elements
Simply wrap a child element that accepts a style prop and this component will add visually hidden
styles to it without overwriting styles already present on the child.
``jsx harmony
// VisuallyHidden is the component
// visuallyHidden is a style object
import {VisuallyHidden, visuallyHidden} from '@accessible/visually-hidden'
export default (props) => (
)
//
``
MIT