mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
starting side nav
This commit is contained in:
parent
418f4f5677
commit
7e168adcb7
11 changed files with 2081 additions and 585 deletions
|
@ -5,16 +5,21 @@
|
|||
export let platformName = undefined;
|
||||
export let navMenu = undefined;
|
||||
export let rightPanel = undefined;
|
||||
export let sideNavMenu = undefined;
|
||||
|
||||
import { cx } from '../../lib';
|
||||
import UIShellNavWrapper from './UIShellNav/UIShellNavWrapper.svelte';
|
||||
import UIShellNavItem from './UIShellNav/UIShellNavItem.svelte';
|
||||
import UIShellRightPanel from './UIShellRightPanel/UIShellRightPanel.svelte';
|
||||
import UIShellSideNavWrapper from './UIShellSideNav/UIShellSideNavWrapper.svelte';
|
||||
import UIShellSideNavItem from './UIShellSideNav/UIShellSideNavItem.svelte';
|
||||
import HamburgerMenu from './UIShellSideNav/HamburgerMenu.svelte';
|
||||
|
||||
$: ariaLabel = company + (uiShellAriaLabel || $$props['aria-label'] || platformName);
|
||||
</script>
|
||||
|
||||
<header aria-label={ariaLabel} class={cx('--header')} role="banner">
|
||||
<HamburgerMenu />
|
||||
<a class={cx('--header__name')} {href}>
|
||||
<span class={cx('--header__name--prefix')}>{company}</span>
|
||||
{platformName}
|
||||
|
@ -29,4 +34,9 @@
|
|||
{#if rightPanel}
|
||||
<UIShellRightPanel {rightPanel} on:inputSearch />
|
||||
{/if}
|
||||
{#if sideNavMenu}
|
||||
<UIShellSideNavWrapper>
|
||||
<UIShellSideNavItem />
|
||||
</UIShellSideNavWrapper>
|
||||
{/if}
|
||||
</header>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue