Skip to content

Commit

Permalink
chore(examples): add missing draggableOpts={{...}} example (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
eden-chan committed Aug 15, 2023
1 parent afd7ef2 commit 54a8518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ import { ResizableBox } from 'react-resizable';
class Example extends React.Component {
render() {
return (
<ResizableBox width={200} height={200} draggableOpts={{...}}
<ResizableBox width={200} height={200} draggableOpts={{grid: [25, 25]}}
minConstraints={[100, 100]} maxConstraints={[300, 300]}>
<span>Contents</span>
</ResizableBox>
Expand Down

0 comments on commit 54a8518

Please sign in to comment.