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

42 lines
1.4 KiB
Plaintext

type OverlayPlacement = "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
interface OverlayOptions {
/**
* Whether the element should render an arrow.
* @default false
*/
showArrow?: boolean;
/**
* The additional offset applied along the main axis between the element and its
* anchor element.
* @default 7 (px) - if `showArrow` is true the default value is 10 (px)
*/
offset?: number;
/**
* The additional offset applied along the cross axis between the element and its
* anchor element.
* @default 0
*/
crossOffset?: number;
/**
* Whether the element should flip its orientation (e.g. top to bottom or left to right) when
* there is insufficient room for it to render completely.
* @default true
*/
shouldFlip?: boolean;
/**
* The placement of the element with respect to its anchor element.
* @default 'top'
*/
placement?: OverlayPlacement;
/**
* The placement padding that should be applied between the element and its
* surrounding container.
* @default 12
*/
containerPadding?: number;
/** Handler that is called when the overlay should close. */
onClose?: () => void;
}
export { OverlayOptions, OverlayPlacement };