mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 21:40:21 +00:00
Added comments
This commit is contained in:
+5
@@ -7,10 +7,15 @@
|
||||
import * as React from "react";
|
||||
|
||||
interface ReactResizeDetectorProps extends React.Props<ReactResizeDetector> {
|
||||
/** Function that will be invoked with width and height arguments */
|
||||
onResize: (width: number, height: number) => void;
|
||||
/** Trigger onResize on height change. Default: false */
|
||||
handleHeight?: boolean;
|
||||
/** Trigger onResize on width change. Default: false */
|
||||
handleWidth?: boolean;
|
||||
/** Do not trigger onResize when a component mounts. Default: false */
|
||||
skipOnMount?: boolean;
|
||||
/** Id of the element we want to observe. If none provided, parentElement of the component will be used. Default: "" */
|
||||
resizableElementId?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user