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 CalendarStoryInput {} export interface CalendarStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const selectedDate = new Writable("2026-03-13"); const disabled = new Writable(false); const minDate = new Writable(""); const maxDate = new Writable(""); return { [NAME]: "cf-calendar Story", [UI]: (
Selected: {selectedDate}
), controls: ( <> ), }; });