Checkbox
Checkbox user input.
Installation
npm install @pencil.js/checkbox
Examples
import Checkbox from "@pencil.js/checkbox";
const position = [100, 200];
const options = {
value: true,
};
const checkbox = new Checkbox(position, options);
CheckboxOptions
Inherit from InputOptions.
Name | Type | Default | Comment |
---|---|---|---|
size | Number |
20 |
Width and height of the checkbox |
value | Boolean |
false |
Whether it's check ot not |