UNPKG

@empoleon/solid-measure

Version:
17 lines (16 loc) 530 B
import { JSX } from "solid-js"; import { WithContentRectChildrenProps } from "./with-content-rect"; export interface MeasureProps { client?: boolean; offset?: boolean; scroll?: boolean; bounds?: boolean; margin?: boolean; children: (props: WithContentRectChildrenProps) => JSX.Element; innerRef?: ((el: Element) => void) | { current?: Element | null; }; onResize?: (contentRect: any) => void; } declare const Measure: import("solid-js").Component<MeasureProps>; export default Measure;