Skip to content

Commit a50a492

Browse files
VenkatVenkat
authored andcommitted
fix: update stories for nested sidebar structure
1 parent 291ff06 commit a50a492

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

packages/ui-components/src/Containers/Sidebar/SidebarGroup/index.stories.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,27 @@ export const EmptyGroup: Story = {
3333
},
3434
};
3535

36+
export const NestedGroup: Story = {
37+
args: {
38+
groupName: 'Nested Group',
39+
pathname: '/nested/folder-b/leaf-2',
40+
items: [
41+
{ label: 'Flat Item', link: '/nested/flat' },
42+
{
43+
label: 'Folder A',
44+
link: '/nested/folder-a',
45+
items: [{ label: 'Leaf A.1', link: '/nested/folder-a/leaf-1' }],
46+
},
47+
{
48+
label: 'Folder B',
49+
link: '/nested/folder-b',
50+
items: [
51+
{ label: 'Leaf B.1', link: '/nested/folder-b/leaf-1' },
52+
{ label: 'Leaf B.2 (Active)', link: '/nested/folder-b/leaf-2' },
53+
],
54+
},
55+
],
56+
},
57+
};
58+
3659
export default { component: SidebarGroup } as Meta;

0 commit comments

Comments
 (0)