import { NAME, pattern, UI, type VNode, Writable } from "commonfabric"; import { Controls, SelectControl } from "../ui/controls/index.ts"; // deno-lint-ignore no-empty-interface interface GridStoryInput {} export interface GridStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const columns = new Writable("3"); const gap = new Writable<"2" | "4" | "6" | "8">("4"); const cellStyle = { backgroundColor: "#e0e7ff", padding: "16px", borderRadius: "4px", textAlign: "center" as const, fontSize: "13px", fontWeight: "500", color: "#4338ca", }; return { [NAME]: "cf-grid Story", [UI]: (
1
2
3
4
5
6
7
8
9
), controls: ( <> ), }; });