UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

16 lines (15 loc) 669 B
import type { HTMLProps } from 'react'; import type { DynamicElement } from '../../shared/types'; export type VisuallyHiddenProps = { /** * Set to `true` to hide an element by default, but to display it when it’s focused (e.g. by a keyboard-only user). Defaults to `false`. */ focusable?: boolean; /** * Custom root HTML element for the component. Defaults to `<span>`. */ element?: DynamicElement; }; export type VisuallyHiddenAllProps = VisuallyHiddenProps & HTMLProps<HTMLSpanElement>; declare const VisuallyHidden: (localProps: VisuallyHiddenAllProps) => import("react/jsx-runtime").JSX.Element; export default VisuallyHidden;