EEnterUI
DocsComponentsThemesDonation
Get Started
      • SkipLink
      • ToolbarButton
      • ToolbarGroup
      • CopyButton
      • CodeBlock
      • Kbd
      • VisuallyHidden
EnterUIDocsLayout UtilitiesUtilitiesAccessibility and ActionsVisuallyHidden
Layout UtilitiesUpdated 6 May 2026

VisuallyHidden

Hide text visually while keeping it available to assistive technology.

VisuallyHidden defines how EnterUI handles hide text visually while keeping it available to assistive technology, including default structure, accessible states, and token-driven styling.

#Default usage

Screen-reader text

Useful when visual controls are intentionally compact.

Code
<IconButton aria-labelledby="hidden-menu-label">
  <VisuallyHidden id="hidden-menu-label">Open navigation</VisuallyHidden>
  M
</IconButton>

#Import

Code
import { VisuallyHidden } from "@froggdesign/enter-ui-react";

#Accessibility

VisuallyHidden uses the standard clipping pattern. It is intended for short labels or helper text, not for hiding important visible content.

#API

  • Renders a span.
  • Accepts native span props and className.

#Styling

Uses .eui-visually-hidden with standard accessible hiding CSS.

PreviousKbd
NextTokens

On this page

  1. Default usage
  2. Import
  3. Accessibility
  4. API
  5. Styling