Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
123456789101112131415161718192021222324252627<script lang="ts"> import LayoutGrid from "$icon/layout-grid"; import List from "$icon/list"; import Segment from "#lib/components/ui/Segment.svelte"; import SegmentedControl from "#lib/components/ui/SegmentedControl.svelte"; import { listView, showListView } from "#lib/components/profile/listView.svelte.ts";</script>
<SegmentedControl value={listView.current} label="Layout"> <Segment value="cards" size="small" icon={LayoutGrid} aria-label="Cards view" title="Cards view" onclick={() => showListView("cards")} /> <Segment value="list" size="small" icon={List} aria-label="List view" title="List view" onclick={() => showListView("list")} /></SegmentedControl>