mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
* 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]
15 lines
442 B
Svelte
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>
|