mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
breaking(ui-shell): remove GlobalHeader, SideNav folders (#1223)
* breaking(ui-shell): remove GlobalHeader/SideNav folders * Run "yarn build:docs"
This commit is contained in:
parent
d34f571150
commit
62735d6275
34 changed files with 56 additions and 56 deletions
23
src/UIShell/HeaderPanelLink.svelte
Normal file
23
src/UIShell/HeaderPanelLink.svelte
Normal file
|
@ -0,0 +1,23 @@
|
|||
<script>
|
||||
/**
|
||||
* Specify the `href` attribute
|
||||
* @type {string}
|
||||
*/
|
||||
export let href = undefined;
|
||||
|
||||
/** Obtain a reference to the HTML anchor element */
|
||||
export let ref = null;
|
||||
</script>
|
||||
|
||||
<li class:bx--switcher__item="{true}">
|
||||
<a
|
||||
bind:this="{ref}"
|
||||
href="{href}"
|
||||
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
|
||||
class:bx--switcher__item-link="{true}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
>
|
||||
<slot />
|
||||
</a>
|
||||
</li>
|
Loading…
Add table
Add a link
Reference in a new issue