mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(ui-shell): make company
in Header
slottable (#1764)
This commit is contained in:
parent
14d584da42
commit
9b3f014a0b
4 changed files with 17 additions and 8 deletions
|
@ -94,8 +94,10 @@
|
|||
{...$$restProps}
|
||||
on:click
|
||||
>
|
||||
{#if company}
|
||||
<span class:bx--header__name--prefix="{true}">{company} </span>
|
||||
{#if company || $$slots.company}
|
||||
<span class:bx--header__name--prefix="{true}"
|
||||
><slot name="company">{company} </slot></span
|
||||
>
|
||||
{/if}
|
||||
<slot name="platform">{platformName}</slot>
|
||||
</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue