Skip to content

Commit

Permalink
add sidebar component
Browse files Browse the repository at this point in the history
  • Loading branch information
sstraatemans committed Oct 25, 2024
1 parent c776e0b commit 38c59d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-bats-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kadena/kode-ui': minor
---

add SideBar Component
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import React from 'react';
import type { ISideBar } from './SideBar';
import { SideBar } from './SideBar';
import { SideBarHeader } from './components/SideBarFooter';
import { SideBarItem } from './components/SideBarItem';

const sampleNetworkItems: string[] = ['Mainnet', 'Testnet'];

Expand Down Expand Up @@ -32,7 +33,13 @@ export const Primary: IStory = {
name: 'SideBar',
args: {},
render: () => {
return <>sdffsd</>;
return (
<SideBar>
<SideBarHeader>
<SideBarItem label="item 1" />
</SideBarHeader>
</SideBar>
);
},
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { FC } from 'react';
import React from 'react';
import { Text } from 'src/components/Typography';
import { Text } from './../../Typography';

export interface ISideBarItem {
label: string;
Expand Down

0 comments on commit 38c59d3

Please sign in to comment.