carbon-components-svelte/tests/ContentSwitcher.test.svelte
Gregor Wassmann ee32859ba2
chore: v11 ContentSwitcher
For better compatibility with existing code bases size `xl` is still supported.
2024-01-02 15:55:43 -05:00

15 lines
442 B
Svelte

<script lang="ts">
import { ContentSwitcher, Switch } from "../types";
import Analytics from "carbon-icons-svelte/lib/Analytics.svelte";
</script>
<ContentSwitcher size="lg" selectedIndex="{1}">
<Switch disabled text="Latest news" />
<Switch text="Trending" />
<Switch>
<div style="display: flex; align-items: center;">
<Analytics style="margin-right: 0.5rem;" />
Trending
</div>
</Switch>
</ContentSwitcher>