Skip to content

Checkbox ​

Button user input.

Button example

Examples ​

js
import { Button } from "pencil.js";

const position = [100, 200];
const options = {
    value: "Click me",
};
const button = new Button(position, options);

ButtonOptions ​

Inherit from TextOptions and from InputOptions.

NameTypeDefaultComment
valueString""Text of the button

Released under the MIT License.