@vue-material/core
Version:
Yet another 'Material Design Components' library for Vue3.
22 lines (20 loc) • 484 B
TypeScript
import { Ref } from 'vue';
type RectType = {
ready: false;
} | ({
ready: true;
} & Omit<DOMRect, 'toJSON'>);
export declare function useRect(elem: Ref<HTMLElement | undefined>, onMove?: boolean): import('./tools').WithProxyRef<RectType | {
ready: false;
} | {
ready: true;
readonly bottom: number;
height: number;
readonly left: number;
readonly right: number;
readonly top: number;
width: number;
x: number;
y: number;
}>;
export {};