mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
refactor(ui-shell): use $$restProps, remove cx
This commit is contained in:
parent
e886d772c7
commit
1e5333dd64
26 changed files with 230 additions and 425 deletions
|
@ -1,11 +1,9 @@
|
|||
<script>
|
||||
export let href;
|
||||
|
||||
import { cx } from '../../../lib';
|
||||
export let href = undefined;
|
||||
</script>
|
||||
|
||||
<li class={cx('--switcher__item')}>
|
||||
<a class={cx('--switcher__item-link')} {href}>
|
||||
<li class:bx--switcher__item={true}>
|
||||
<a {href} class:bx--switcher__item-link={true} {...$$restProps}>
|
||||
<slot />
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue