import { NAME, pattern, UI, type VNode, Writable } from "commonfabric"; import { Controls, SelectControl } from "../ui/controls/index.ts"; // deno-lint-ignore no-empty-interface interface TabListStoryInput {} export interface TabListStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const orientation = new Writable<"horizontal" | "vertical">("horizontal"); const variant = new Writable<"underline" | "chip">("underline"); const activeTab = new Writable("overview"); const activeChipTab = new Writable("all"); return { [NAME]: "cf-tab-list Story", [UI]: (
Overview Settings Activity
Overview content
Settings content
Activity content
Chip variant with overflow scrolling
All Notes Bookmarks Highlights Summaries Drafts Archived
Narrow mobile header overflow
× All Notes Bookmarks Highlights Summaries Drafts Archived +
), controls: ( <> ), }; });