mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
test(content-switcher): add unit tests
This commit is contained in:
parent
63fdb75664
commit
67df81eac9
7 changed files with 219 additions and 15 deletions
|
@ -0,0 +1,11 @@
|
|||
<script lang="ts">
|
||||
import { ContentSwitcher, Switch } from "carbon-components-svelte";
|
||||
|
||||
export let selectedIndex = 1;
|
||||
</script>
|
||||
|
||||
<ContentSwitcher {selectedIndex}>
|
||||
<Switch text="First" />
|
||||
<Switch text="Second" />
|
||||
<Switch text="Third" />
|
||||
</ContentSwitcher>
|
Loading…
Add table
Add a link
Reference in a new issue