UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

13 lines (12 loc) 585 B
import { SxProp } from '../../sx'; /** * Provides a component that implements the "visually hidden" technique. This is * analagous to the common `sr-only` class. Children that are rendered inside * this component will not be visible but will be available to screen readers. * * Note: if this component, or a descendant, has focus then this component will * no longer be visually hidden. * * @see https://www.scottohara.me/blog/2023/03/21/visually-hidden-hack.html */ export declare const VisuallyHidden: import("styled-components").StyledComponent<"div", any, SxProp, never>;