Files
NapCatQQ/.pnpm-store/v3/files/79/6db9548b8d672973421124d468ae8fa0b8b48228f07048c023567a0b0f4846943975015c89d606818be8b9b5e9ec8678a896a2a2cdfb056c10b0be8bd99374
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

32 lines
1.1 KiB
Plaintext

import { AriaLinkProps } from '@react-types/link';
import { DOMAttributes, FocusableElement } from '@react-types/shared';
import { RefObject } from 'react';
interface AriaLinkOptions extends AriaLinkProps {
/** Indicates the element that represents the current item within a container or set of related elements. */
"aria-current"?: DOMAttributes["aria-current"];
/** Whether the link is disabled. */
isDisabled?: boolean;
/** The role of the element */
role?: string;
/**
* The HTML element used to render the link, e.g. 'a', or 'span'.
* @default 'a'
*/
elementType?: string;
}
interface LinkAria {
/** Props for the link element. */
linkProps: DOMAttributes;
/** Whether the link is currently pressed. */
isPressed: boolean;
}
/**
* Provides the behavior and accessibility implementation for a link component.
* A link allows a user to navigate to another page or resource within a web page
* or application.
*/
declare function useAriaLink(props: AriaLinkOptions, ref: RefObject<FocusableElement>): LinkAria;
export { AriaLinkOptions, LinkAria, useAriaLink };