An open API service indexing awesome lists of open source software.

https://github.com/accessible-ui/visually-hidden

🅰 A React component for adding visually hidden styles to elements
https://github.com/accessible-ui/visually-hidden

Last synced: about 2 months ago
JSON representation

🅰 A React component for adding visually hidden styles to elements

Awesome Lists containing this project

README

        





<VisuallyHidden>




Bundlephobia


Types


Code coverage


Build status


NPM Version


MIT License

npm i @accessible/visually-hidden


A React component for adding visually hidden styles to elements

## Quick Start

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) => (



)
//
```

## LICENSE

MIT