A Material Design input field for numeric values with step up/down buttons (Polymer 2).
<paper-number-input
label="Quantity"
min="1"
max="12"
value="6"
step="1.1"
fallback-value="0"
><paper-number-input>
bower install -S Zecat/paper-number-input
For icons to appear, you can either:
- just import the iron-icons/iron-icons.html Polymer element - it is a dependency of this element but not imported by default
- create your own icon set and specify
stepDownIcon
andstepUpIcon
properties according - import paper-number-input/paper-number-input-icons and define
stepDownIcon
as 'integer-input:step-down' andstepUpIcon
as 'integer-input:step-up'