From ee9f3e295c2c5f303812253160bbedb91d05d34b Mon Sep 17 00:00:00 2001 From: Marcus Feitoza Date: Sat, 18 Apr 2020 15:18:46 -0300 Subject: [PATCH] docs(uishell): add side nav story --- src/components/UIShell/UIShell.Story.svelte | 18 ++++++++++++++++++ src/components/UIShell/UIShell.stories.js | 10 ++++++++++ 2 files changed, 28 insertions(+) diff --git a/src/components/UIShell/UIShell.Story.svelte b/src/components/UIShell/UIShell.Story.svelte index 4c0c95ff..b1b8947d 100644 --- a/src/components/UIShell/UIShell.Story.svelte +++ b/src/components/UIShell/UIShell.Story.svelte @@ -111,6 +111,24 @@ {#if story === 'header'}
+{:else if story === 'sidenav'} + + + + + + + + + + + + + + + + + {:else if story === 'header-with-nav'}
diff --git a/src/components/UIShell/UIShell.stories.js b/src/components/UIShell/UIShell.stories.js index 2a46d83c..5179d95a 100644 --- a/src/components/UIShell/UIShell.stories.js +++ b/src/components/UIShell/UIShell.stories.js @@ -13,6 +13,16 @@ export const Header = () => ({ } }); +export const Sidenav = () => ({ + Component, + props: { + story: 'sidenav', + href: text('The link href (href)', '#'), + company: text('Company name', 'IBM'), + platformName: text('Platform name', 'Platform Name') + } +}); + export const HeaderWithNav = () => ({ Component, props: {