Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@purpurds/visually-hidden

Package Overview
Dependencies
Maintainers
0
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purpurds/visually-hidden

import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";

  • 5.11.0
  • npm
  • Socket score

Version published
Weekly downloads
503
decreased by-42.51%
Maintainers
0
Weekly downloads
 
Created
Source

import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";

import * as VisuallyHiddenStories from "./src/visually-hidden.stories"; import packageInfo from "./package.json";

VisuallyHidden

Version {packageInfo.version}

Component provides text only for screen readers. This is used to explain content or situation which is not explainable without clear text. Component is designed to be hidden, but shown when screen reader makes focus.

Example use cases:

  • There is content being loaded
  • When visual style is not understood by screen reader, like with Price component

Showcase

Properties

Installation

Via NPM

Add the dependency to your consumer app like "@purpurds/purpur": "^x.y.z"

In MyComponent.tsx

import { VisuallyHidden } from "@purpurds/purpur";

export const MyComponent = () => {
  return (
    <div>
      <VisuallyHidden {...someProps}>Some content</VisuallyHidden>
    </div>
  );
};

FAQs

Package last updated on 13 Aug 2024

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc