class CheckBox
extends Button
import { CheckBox } from "https://deno.land/x/tui@2.0.0/src/components/checkbox.ts";
Component for creating interactive checkbox
Examples
Example 1
Example 1
new CheckBox({
parent: tui,
checked: false,
theme: {
base: crayon.bgGreen,
focused: crayon.bgLightGreen,
active: crayon.bgYellow,
},
rectangle: {
column: 1,
row: 1,
height: 1,
width: 1,
},
zIndex: 0,
});
Constructors
new
CheckBox(options: CheckBoxOptions)Properties
checked: Signal<boolean>