@cn-ui/core
Version:
The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.
8 lines (7 loc) • 364 B
TypeScript
import { type Atom } from "@cn-ui/reactive";
import type { PopoverProps } from "../Popper";
/** 对于 Popper js 的封装 */
export declare function usePopper(target: Atom<HTMLElement>, popoverContent: Atom<HTMLElement | null>, arrow: Atom<HTMLElement | null>, getOptions: () => Partial<PopoverProps>): {
/** update position */
updatePosition(): void;
};