UNPKG

@redocly/theme

Version:

Shared UI components lib

14 lines (13 loc) 316 B
import { RefObject } from 'react'; type Size = { width: number; height: number; }; export declare function useElementSize<T extends HTMLElement = HTMLElement>({ delay, detectSizes, }?: { delay?: number; detectSizes?: 'width' | 'height' | 'both'; }): [ Size, RefObject<T | null> ]; export {};