You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@radix-ui/react-visually-hidden

Package Overview
Dependencies
Maintainers
6
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-visually-hidden

1.1.3
latest
Source
npm
Version published
Weekly downloads
10M
9.92%
Maintainers
6
Weekly downloads
 
Created

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

FAQs

Package last updated on 08 Apr 2025

Did you know?

Socket

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