Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.12 KB

readme.md

File metadata and controls

25 lines (18 loc) · 1.12 KB

Input

Abstract user input.

Examples

import { Input } from "pencil.js";

class MyInput extends Input {
}

InputOptions

Inherit from ContainerOptions.

Name Type Default Comment
value Any null Initial value of the input
foreground Color or String "#444" Color of the filling
fill Color or String "#f6f6f6" Color of the background
stroke Color or String "#aaa" Color of the border
hover Color or String "#d0d0d0" Color of the background when hovered
cursor String Component.cursors.pointer Cursor on hover