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

41 lines
1.3 KiB
Plaintext

import { RefObject } from 'react';
import { AriaPopoverProps, AriaOverlayProps, PopoverAria } from '@react-aria/overlays';
import { OverlayPlacement } from '@heroui/aria-utils';
import { OverlayTriggerState } from '@react-stately/overlays';
interface Props {
/**
* Whether the element should render an arrow.
* @default false
*/
showArrow?: boolean;
/**
* The placement of the element with respect to its anchor element.
* @default 'top'
*/
placement?: OverlayPlacement;
/**
* A ref for the scrollable region within the overlay.
* @default popoverRef
*/
scrollRef?: RefObject<HTMLElement>;
/**
* List of dependencies to update the position of the popover.
* @default []
*/
updatePositionDeps?: any[];
/**
* Whether the popover should close on scroll.
* @default true
*/
shouldCloseOnScroll?: boolean;
}
type ReactAriaPopoverProps = Props & Omit<AriaPopoverProps, "placement"> & AriaOverlayProps;
/**
* Provides the behavior and accessibility implementation for a popover component.
* A popover is an overlay element positioned relative to a trigger.
*/
declare function useReactAriaPopover(props: ReactAriaPopoverProps, state: OverlayTriggerState): PopoverAria;
export { Props, ReactAriaPopoverProps, useReactAriaPopover };