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

32 lines
1.1 KiB
Plaintext

import { AriaTooltipProps, TooltipTriggerProps } from "@react-types/tooltip";
import { DOMAttributes, FocusableElement, RefObject } from "@react-types/shared";
import { TooltipTriggerState } from "@react-stately/tooltip";
export interface TooltipAria {
/**
* Props for the tooltip element.
*/
tooltipProps: DOMAttributes;
}
/**
* Provides the accessibility implementation for a Tooltip component.
*/
export function useTooltip(props: AriaTooltipProps, state?: TooltipTriggerState): TooltipAria;
export interface TooltipTriggerAria {
/**
* Props for the trigger element.
*/
triggerProps: DOMAttributes;
/**
* Props for the overlay container element.
*/
tooltipProps: DOMAttributes;
}
/**
* Provides the behavior and accessibility implementation for a tooltip trigger, e.g. a button
* that shows a description when focused or hovered.
*/
export function useTooltipTrigger(props: TooltipTriggerProps, state: TooltipTriggerState, ref: RefObject<FocusableElement | null>): TooltipTriggerAria;
export type { AriaTooltipProps, TooltipTriggerProps } from '@react-types/tooltip';
//# sourceMappingURL=types.d.ts.map