Files
NapCatQQ/.pnpm-store/v3/files/6a/5f4e17f715fbeff52c44e0b1ee58e2004a4fade25ce151a22375a4085e71257882d2a16ad4358131898baecac3dbaa22476419519b3749604015f9fbad614b
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

29 lines
1013 B
Plaintext

import { DOMAttributes } from "@react-types/shared";
import React, { JSXElementConstructor, ReactNode } from "react";
export interface VisuallyHiddenProps extends DOMAttributes {
/** The content to visually hide. */
children?: ReactNode;
/**
* The element type for the container.
* @default 'div'
*/
elementType?: string | JSXElementConstructor<any>;
/** Whether the element should become visible on focus, for example skip links. */
isFocusable?: boolean;
}
export interface VisuallyHiddenAria {
visuallyHiddenProps: DOMAttributes;
}
/**
* Provides props for an element that hides its children visually
* but keeps content visible to assistive technology.
*/
export function useVisuallyHidden(props?: VisuallyHiddenProps): VisuallyHiddenAria;
/**
* VisuallyHidden hides its children visually, while keeping content visible
* to screen readers.
*/
export function VisuallyHidden(props: VisuallyHiddenProps): React.JSX.Element;
//# sourceMappingURL=types.d.ts.map