Vector.js

Vector is an open source javascript library for creating interactive graphics. View the repository, browse the API, run the tests, or meet the team.

Checkbox Element Open in Sandbox

Description

This interactive demonstrates the checkbox element.

Script

/**
* @title Checkbox Element
* @description This interactive demonstrates the checkbox element.
* @tags [elements, input]
*/
import { Interactive, getScriptName } from '../../index.js';
let interactive = new Interactive(getScriptName());
interactive.width = 768;
interactive.height = 150;
interactive.root.style.border = "1px solid grey";
let checkBox = interactive.checkBox(100, 75, "My Checkbox", false);
//# sourceMappingURL=check-box-element.js.map