2.2.13 • Published 1 year ago

@nature-ui/visually-hidden v2.2.13

Weekly downloads
23
License
MIT
Repository
github
Last release
1 year ago

Visually Hidden

The visually hidden component styles itself so that it’s content is not visible, but it is available to assistive technologies like screen readers and other text to speech programs.

Installation

yarn add @nature-ui/visually-hidden

# or

npm i @nature-ui/visually-hidden

Import component

import { VisuallyHidden } from '@nature-ui/visually-hidden';

Basic usage

// it renders a `span` by default
<VisuallyHidden>This content will be hidden on screen</VisuallyHidden>

// for visually hidden input fields
<VisuallyHiddenInput type="checkbox" defaultChecked/>

References