import { NAME, pattern, UI, type VNode, Writable } from "commonfabric"; // deno-lint-ignore no-empty-interface interface TabsStoryInput {} export interface TabsStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const activeTab = new Writable("one"); return { [NAME]: "cf-tabs Story", [UI]: (
Tab One Tab Two Disabled
Content for Tab One. Keyboard navigable with arrow keys.
Content for Tab Two.
Content for disabled tab (not reachable).
), controls: (
No interactive controls. Composed of cf-tabs, cf-tab-list, cf-tab, and cf-tab-panel.
), }; });