Skip to content

communitybuilders/paper-number-input

 
 

Repository files navigation

Published on webcomponents.org

<paper-number-input>

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>

Installation

  bower install -S Zecat/paper-number-input

Usage

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 and stepUpIcon properties according
  • import paper-number-input/paper-number-input-icons and define stepDownIcon as 'integer-input:step-down' and stepUpIcon as 'integer-input:step-up'

About

A Material Design input field for numric values with step up/down buttons (Polymer 2)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 100.0%