import { NAME, pattern, UI, type VNode, Writable } from "commonfabric"; import { Controls, SelectControl, SwitchControl, } from "../ui/controls/index.ts"; // deno-lint-ignore no-empty-interface interface HStackStoryInput {} export interface HStackStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const gap = new Writable<"0" | "1" | "2" | "3" | "4" | "6" | "8">("2"); const wrap = new Writable(false); const reverse = new Writable(false); return { [NAME]: "cf-hstack Story", [UI]: (
Interactive
Item 1
Item 2
Item 3
Alignment
align=start
Tall
Short
align=center
Tall
Short
align=end
Tall
Short
), controls: ( <> ), }; });