@nature-ui/visually-hidden
TypeScript icon, indicating that this package has built-in type declarations

2.2.13 • Public • Published

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

/@nature-ui/visually-hidden/

    Package Sidebar

    Install

    npm i @nature-ui/visually-hidden

    Weekly Downloads

    1

    Version

    2.2.13

    License

    MIT

    Unpacked Size

    283 kB

    Total Files

    10

    Last publish

    Collaborators

    • dnature