mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat(uishell): nav
This commit is contained in:
parent
e24de4e797
commit
f43f684b5c
8 changed files with 127 additions and 2 deletions
|
@ -11,6 +11,9 @@
|
|||
import SideNavMenu from './SideNav/SideNavMenu.svelte';
|
||||
import SideNavMenuItem from './SideNav/SideNavMenuItem.svelte';
|
||||
import SideNavLink from './SideNav/SideNavLink.svelte';
|
||||
import UIShellNav from './UIShellNav/UIShellNav.svelte';
|
||||
import UIShellNavItem from './UIShellNav/UIShellNavItem.svelte';
|
||||
import UIShellNavSubmenu from './UIShellNav/UIShellNavSubmenu.svelte';
|
||||
|
||||
let iCatalog = {
|
||||
class: undefined,
|
||||
|
@ -43,7 +46,22 @@
|
|||
};
|
||||
</script>
|
||||
|
||||
{#if story === 'with-actions-sidenav'}
|
||||
{#if story === 'with-nav'}
|
||||
<UIShell {...$$props}>
|
||||
<div slot="Nav">
|
||||
<UIShellNav>
|
||||
<UIShellNavItem href="/" text="Link 1" />
|
||||
<UIShellNavItem href="/" text="Link 2" />
|
||||
<UIShellNavItem href="/" text="Link 3" />
|
||||
<UIShellNavSubmenu text="Sub Menu">
|
||||
<UIShellNavItem href="/" text="Link 1" />
|
||||
<UIShellNavItem href="/" text="Link 2" />
|
||||
<UIShellNavItem href="/" text="Link 3" />
|
||||
</UIShellNavSubmenu>
|
||||
</UIShellNav>
|
||||
</div>
|
||||
</UIShell>
|
||||
{:else if story === 'with-actions-sidenav'}
|
||||
<UIShell {...$$props}>
|
||||
<div slot="SideNav">
|
||||
<SideNav>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue