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 RadioStoryInput {} export interface RadioStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const orientation = new Writable<"vertical" | "horizontal">("vertical"); const disabled = new Writable(false); const selected = new Writable("banana"); const fruitItems = [ { label: "Apple", value: "apple" }, { label: "Banana", value: "banana" }, { label: "Cherry", value: "cherry" }, ]; return { [NAME]: "cf-radio Story", [UI]: (
Radio Group
), controls: ( <> ), }; });