0.0.1 • Published 3 years ago

@motif-ui/react-visually-hidden v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@motif-ui/react-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

pnpm add @motif-ui/react-visually-hidden
# or
npm install @motif-ui/react-visually-hidden
# or
yarn add @motif-ui/react-visually-hidden

Import component

import { VisuallyHidden } from "@motif-ui/react-visually-hidden"

Basic usage

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