mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21: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 story = undefined;
|
||||
export let light = false;
|
||||
|
||||
import ContentSwitcher from "./ContentSwitcher.svelte";
|
||||
import Switch from "./Switch.svelte";
|
||||
|
@ -11,6 +12,7 @@
|
|||
|
||||
{#if story === 'selected'}
|
||||
<ContentSwitcher
|
||||
{light}
|
||||
on:change={({ detail }) => {
|
||||
console.log('on:change', detail);
|
||||
}}>
|
||||
|
@ -20,6 +22,7 @@
|
|||
</ContentSwitcher>
|
||||
{:else}
|
||||
<ContentSwitcher
|
||||
{light}
|
||||
bind:selectedIndex
|
||||
on:change={({ detail }) => {
|
||||
console.log('on:change', detail);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue