Socket
Socket
Sign inDemoInstall

@radix-ui/react-visually-hidden

Package Overview
Dependencies
14
Maintainers
6
Versions
153
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @radix-ui/react-visually-hidden


Version published
Weekly downloads
4.3M
increased by0.56%
Maintainers
6
Install size
381 kB
Created
Weekly downloads
 

Package description

What is @radix-ui/react-visually-hidden?

The @radix-ui/react-visually-hidden package is designed to assist developers in creating accessible web applications by providing a component that visually hides content but keeps it accessible to screen readers. This is particularly useful for enhancing the accessibility of websites without compromising the design or user interface.

What are @radix-ui/react-visually-hidden's main functionalities?

Visually hiding content

This feature allows developers to hide text or other elements visually while still making it accessible to screen readers. The provided code demonstrates how to wrap content within the VisuallyHidden component to achieve this effect.

import VisuallyHidden from '@radix-ui/react-visually-hidden';

function App() {
  return (
    <VisuallyHidden>
      <p>This text is hidden visually but accessible to screen readers.</p>
    </VisuallyHidden>
  );
}

Other packages similar to @radix-ui/react-visually-hidden

Readme

Source

react-visually-hidden

Installation

$ yarn add @radix-ui/react-visually-hidden
# or
$ npm install @radix-ui/react-visually-hidden

Usage

View docs here.

FAQs

Last updated on 26 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc