carbon-components-svelte/tests/ContentSwitcher.test.svelte
metonym ba58ba8f00
refactor: use icons from carbon-icons-svelte@11 (#1227)
* chore: update ignore rules, remove unused files

* refactor(icons): use icons from carbon-icons-svelte@11

* docs(time-picker): fix default value

* chore: upgrade carbon-icons-svelte to v11

* docs: update examples to use icons from carbon-icons-svelte@11

* docs: update number of icons [ci skip]
2022-04-03 11:57:28 -07: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="xl" 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>