Skip to content

Commit 55364d3

Browse files
committed
Added onResizeStart and onResizeEnd storybook actions on resizable spaces
1 parent a7ce3ed commit 55364d3

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/components/stories/02-components/BottomResizable.stories.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Anchored resizable space on the bottom edge of it's parent.
3030
<Preview>
3131
<Story name="Default (px)">
3232
<ViewPort>
33-
<BottomResizable style={green} size={300} trackSize={true}>
33+
<BottomResizable style={green} size={300} trackSize={true} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
3434
{description("Bottom resizable")}
3535
</BottomResizable>
3636
</ViewPort>
@@ -42,7 +42,7 @@ Anchored resizable space on the bottom edge of it's parent.
4242
<Preview>
4343
<Story name="With resize constraints">
4444
<ViewPort>
45-
<BottomResizable style={green} size={300} trackSize={true} minimumSize={150} maximumSize={450}>
45+
<BottomResizable style={green} size={300} trackSize={true} minimumSize={150} maximumSize={450} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
4646
{description("Bottom resizable")}
4747
</BottomResizable>
4848
</ViewPort>
@@ -54,7 +54,7 @@ Anchored resizable space on the bottom edge of it's parent.
5454
<Preview>
5555
<Story name="Scrollable">
5656
<ViewPort>
57-
<BottomResizable style={green} size={300} scrollable={true}>
57+
<BottomResizable style={green} size={300} scrollable={true} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
5858
{lorem}
5959
</BottomResizable>
6060
</ViewPort>

src/components/stories/02-components/LeftResizable.stories.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Anchored resizable space on the left edge of it's parent.
3030
<Preview>
3131
<Story name="Default (px)">
3232
<ViewPort>
33-
<LeftResizable style={green} size={300} trackSize={true}>
33+
<LeftResizable style={green} size={300} trackSize={true} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
3434
{description("Left resizable")}
3535
</LeftResizable>
3636
</ViewPort>
@@ -42,7 +42,7 @@ Anchored resizable space on the left edge of it's parent.
4242
<Preview>
4343
<Story name="With resize constraints">
4444
<ViewPort>
45-
<LeftResizable style={green} size={300} trackSize={true} minimumSize={150} maximumSize={450}>
45+
<LeftResizable style={green} size={300} trackSize={true} minimumSize={150} maximumSize={450} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
4646
{description("Left resizable")}
4747
</LeftResizable>
4848
</ViewPort>
@@ -54,7 +54,7 @@ Anchored resizable space on the left edge of it's parent.
5454
<Preview>
5555
<Story name="Scrollable">
5656
<ViewPort>
57-
<LeftResizable style={green} size={300} scrollable={true}>
57+
<LeftResizable style={green} size={300} scrollable={true} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
5858
{lorem}
5959
</LeftResizable>
6060
</ViewPort>

src/components/stories/02-components/RightResizable.stories.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Anchored resizable space on the right edge of it's parent.
3030
<Preview>
3131
<Story name="Default (px)">
3232
<ViewPort>
33-
<RightResizable style={green} size={300} trackSize={true}>
33+
<RightResizable style={green} size={300} trackSize={true} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
3434
{description("Right resizable")}
3535
</RightResizable>
3636
</ViewPort>
@@ -42,7 +42,7 @@ Anchored resizable space on the right edge of it's parent.
4242
<Preview>
4343
<Story name="With resize constraints">
4444
<ViewPort>
45-
<RightResizable style={green} size={300} trackSize={true} minimumSize={150} maximumSize={450}>
45+
<RightResizable style={green} size={300} trackSize={true} minimumSize={150} maximumSize={450} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
4646
{description("Right resizable")}
4747
</RightResizable>
4848
</ViewPort>
@@ -54,7 +54,7 @@ Anchored resizable space on the right edge of it's parent.
5454
<Preview>
5555
<Story name="Scrollable">
5656
<ViewPort>
57-
<RightResizable style={green} size={300} scrollable={true}>
57+
<RightResizable style={green} size={300} scrollable={true} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
5858
{lorem}
5959
</RightResizable>
6060
</ViewPort>

src/components/stories/02-components/TopResizable.stories.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Anchored resizable space on the top edge of it's parent.
3030
<Preview>
3131
<Story name="Default (px)">
3232
<ViewPort>
33-
<TopResizable style={green} size={300} trackSize={true}>
33+
<TopResizable style={green} size={300} trackSize={true} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
3434
{description("Top resizable")}
3535
</TopResizable>
3636
</ViewPort>
@@ -42,7 +42,7 @@ Anchored resizable space on the top edge of it's parent.
4242
<Preview>
4343
<Story name="With resize constraints">
4444
<ViewPort>
45-
<TopResizable style={green} size={300} trackSize={true} minimumSize={150} maximumSize={450}>
45+
<TopResizable style={green} size={300} trackSize={true} minimumSize={150} maximumSize={450} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
4646
{description("Top resizable")}
4747
</TopResizable>
4848
</ViewPort>
@@ -54,7 +54,7 @@ Anchored resizable space on the top edge of it's parent.
5454
<Preview>
5555
<Story name="Scrollable">
5656
<ViewPort>
57-
<TopResizable style={green} size={300} scrollable={true}>
57+
<TopResizable style={green} size={300} scrollable={true} onResizeStart={action('onResizeStart')} onResizeEnd={action('onResizeEnd')}>
5858
{lorem}
5959
</TopResizable>
6060
</ViewPort>

0 commit comments

Comments
 (0)