Skip to content

Commit 515c067

Browse files
committed
docs(readme): document 'handle' param
1 parent a18a8c6 commit 515c067

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ These props apply to both `<Resizable>` and `<ResizableBox>`.
5050
children: React.Element<any>,
5151
width: number,
5252
height: number,
53+
// Either a ReactElement to be used as handle, or a function returning an element that is fed the handle's location as its first argument.
54+
handle: ReactElement<any> | (resizeHandle: 's' | 'w' | 'e' | 'n' | 'sw' | 'nw' | 'se' | 'ne') => ReactElement<any>,
5355
// If you change this, be sure to update your css
5456
handleSize: [number, number] = [10, 10],
5557
lockAspectRatio: boolean = false,

test/TestLayout.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default class TestLayout extends React.Component<{}, {width: number, heig
1212
};
1313

1414
onResize = (event, {element, size, handle}) => {
15-
console.log(handle);
1615
this.setState({width: size.width, height: size.height});
1716
};
1817

0 commit comments

Comments
 (0)