/// import { Cell, Default, ifElse, NAME, recipe, UI } from "commontools"; interface CheckboxSimpleInput { enabled: Cell>; } interface CheckboxSimpleOutput extends CheckboxSimpleInput {} export default recipe( "ct-checkbox simple demo", ({ enabled }) => { return { [NAME]: "Checkbox Demo", [UI]: (

Simple ct-checkbox + ifElse Demo

Enable Feature

Debug: enabled = {ifElse(enabled, "true", "false")}

            {ifElse(enabled, "✓ Feature is enabled!", "⚠ Feature is disabled")}
          

Status: {ifElse(enabled, "ON", "OFF")}

), enabled, }; }, );