mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(content-switcher): support light variant
This commit is contained in:
parent
ffa4ac08f3
commit
9a78f9900d
3 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
<script>
|
||||
export let selectedIndex = 0;
|
||||
export let light = false;
|
||||
|
||||
import { afterUpdate, createEventDispatcher, setContext } from "svelte";
|
||||
import { writable } from "svelte/store";
|
||||
|
@ -49,6 +50,7 @@
|
|||
<div
|
||||
role="tablist"
|
||||
class:bx--content-switcher={true}
|
||||
class:bx--content-switcher--light={light}
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue