Skip to main content
Neighborhood Design System v5.0.0-rc.2

Visually Hidden

Draft

Visually Hidden hides content on screen while keeping it available to screen readers and other assistive technology. Use it to give icon-only controls an accessible name or to add context that sighted users get from the layout. Content is revealed when it receives focus, so it can also be used for skip links.

Storybook docs (opens in new tab)
Draft. This component is in draft. Its API may change before it is marked Ready. What this means

Preview

Open in Storybook (opens in new tab)

Code

Install
npm install @fbin-web/neighborhood-core
Import
import { NbhdVisuallyHidden } from '@fbin-web/neighborhood-core';
Usage
<nbhd-text>
  Sale price: <nbhd-visually-hidden>originally $199, now </nbhd-visually-hidden>$149
</nbhd-text>

Slots

NameDescription
(default)The content to hide visually.
Esc
↑ ↓ to move↵ to open