UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

20 lines (19 loc) 666 B
import type { MaybeComputedElementRef } from './unrefElement'; import type { UseResizeObserverOptions } from './useResizeObserver'; export interface ElementSize { width: number; height: number; } /** * Reactive size of an HTML element. * * @see https://vueuse.org/useElementSize * @param target * @param callback * @param options */ export declare function useElementSize(target: MaybeComputedElementRef, initialSize?: ElementSize, options?: UseResizeObserverOptions): { width: import("vue").ShallowRef<number, number>; height: import("vue").ShallowRef<number, number>; }; export type UseElementSizeReturn = ReturnType<typeof useElementSize>;