import { NAME, pattern, UI, type VNode, Writable } from "commonfabric"; import { Controls, SwitchControl, TextControl } from "../ui/controls/index.ts"; // deno-lint-ignore no-empty-interface interface InputStoryInput {} export interface InputStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const placeholder = new Writable("Type something..."); const disabled = new Writable(false); const value = new Writable(""); return { [NAME]: "cf-input Story", [UI]: (
Current value: "{value}"
), controls: ( <> ), }; });