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 SliderStoryInput {} export interface SliderStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const value = new Writable(40); const orientation = new Writable<"horizontal" | "vertical">("horizontal"); const disabled = new Writable(false); return { [NAME]: "cf-slider Story", [UI]: (
Value: {value}
), controls: ( <> ), }; });