Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@chakra-ui/visually-hidden
Advanced tools
A React component that visually hides its content
@chakra-ui/visually-hidden is a utility component from the Chakra UI library that allows you to visually hide elements while keeping them accessible to screen readers. This is particularly useful for improving accessibility in web applications.
Visually Hidden Text
This feature allows you to hide text visually while keeping it accessible to screen readers. This is useful for providing additional context to screen reader users without displaying the text on the screen.
<VisuallyHidden>This text is hidden but accessible to screen readers</VisuallyHidden>
Visually Hidden Input
You can use the VisuallyHidden component to hide form elements like inputs while keeping them accessible. This is useful for hidden form fields that need to be read by screen readers.
<VisuallyHidden as="input" type="text" value="hidden input" />
react-aria provides a set of React hooks that help you build accessible components. It includes utilities for managing focus, keyboard interactions, and more. Compared to @chakra-ui/visually-hidden, react-aria offers a broader range of accessibility utilities but requires more setup.
react-accessible-accordion is a component library for creating accessible accordions in React. While it focuses on a specific UI pattern, it shares the goal of improving accessibility, similar to @chakra-ui/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.
yarn add @chakra-ui/visually-hidden
# or
npm i @chakra-ui/visually-hidden
import { VisuallyHidden } from "@chakra-ui/visually-hidden"
// it renders a `span` by default
<VisuallyHidden>This content will be hidden on screen</VisuallyHidden>
// for visually hidden input fields
<VisuallyHiddenInput type="checkbox" defaultChecked/>
FAQs
A React component that visually hides its content
The npm package @chakra-ui/visually-hidden receives a total of 310,154 weekly downloads. As such, @chakra-ui/visually-hidden popularity was classified as popular.
We found that @chakra-ui/visually-hidden demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.