Skip to main content

VisuallyHidden

The one way to provide screen-reader-only text, such as a hidden heading or keyboard instructions. Nothing else in the app may hide text this way.

This is a function exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import { VisuallyHidden } from "@mapcairn/map";

function VisuallyHidden(input: VisuallyHiddenProps): JSX.Element;

Parameters​

  • { as: Component, className, ...rest }
  • input (VisuallyHiddenProps)

Returns​

JSX.Element

See also​

Source: packages/map/src/ui/VisuallyHidden/VisuallyHidden.tsx:16