Skip to content

Commit 4265cbb

Browse files
committed
fix(ResizablePanel): add grid story
1 parent 13c1506 commit 4265cbb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/components/layout/ResizablePanel.stories.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ const TemplateControllable: StoryFn<CubeResizablePanelProps> = (args) => {
5757
);
5858
};
5959

60+
const GridTemplate: StoryFn<CubeResizablePanelProps> = (args) => (
61+
<Panel isStretched height="min 30x" fill="#white" gridColumns="auto 1fr">
62+
<ResizablePanel size={300} {...args} />
63+
<Panel fill="#light"></Panel>
64+
</Panel>
65+
);
66+
6067
export const ResizeRight = TemplateRight.bind({});
6168
ResizeRight.args = {
6269
direction: 'right',
@@ -86,3 +93,9 @@ export const Disabled = TemplateRight.bind({});
8693
Disabled.args = {
8794
isDisabled: true,
8895
};
96+
97+
export const InGridLayout = GridTemplate.bind({});
98+
InGridLayout.args = {
99+
direction: 'right',
100+
maxSize: 500,
101+
};

0 commit comments

Comments
 (0)