feat(content-switcher): support light variant

This commit is contained in:
Eric Liu 2020-07-20 19:58:33 -07:00
commit 9a78f9900d
3 changed files with 10 additions and 1 deletions

View file

@ -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