UNPKG

pencil.js

Version:

Nice modular interactive 2D drawing library.

27 lines (18 loc) 624 B
# Checkbox Checkbox user input. ![Checkbox example](../../../media/examples/checkbox.png) ## Examples ```js import { Checkbox } from "pencil.js"; const position = [100, 200]; const options = { value: true, }; const checkbox = new Checkbox(position, options); ``` ## CheckboxOptions Inherit from [InputOptions](../input/readme.md#inputoptions). | Name | Type | Default | Comment | |-------|-----------|---------|----------------------------------| | size | `Number` | `20` | Width and height of the checkbox | | value | `Boolean` | `false` | Whether it's check ot not |