Skip to content

Commit 2698816

Browse files
committed
Updated resize events example
1 parent fcf9139 commit 2698816

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/stories/01-examples/03-ControllerSize.stories.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import { CommonHeader } from "../Utils";
1111

1212
## Resizable space with state controlled size
1313

14-
Example of resizable space with state controlled size. By default the size of a resizable
15-
space is uncontrolled. Therefore the initial size passed is is only the initial size of
16-
a space. To keep the size of a space controlled with state you need to use the
17-
onResizeEnd event.
14+
By default the size of a resizable space is uncontrolled. Therefore the initial size passed is is
15+
only the initial size of a space and React Spaces deals with any resizing. To keep the size of a
16+
space controlled in state you need to use the onResizeEnd event to set the new size of a space
17+
after a resize back to a state value.
1818

1919
<Preview>
2020
<Story name="Controlled size">
@@ -53,4 +53,4 @@ You can cancel a resize by returning `false` from a onResizeStart event handler.
5353
}
5454
}
5555
</Story>
56-
</Preview>
56+
</Preview>

0 commit comments

Comments
 (0)