Number input
A number field, its figure aligned to the end like a number in a column. It takes . and , alike as the decimal separator, whatever the browser's language, and its value is always a number. With controls, a − and a + step it within its own min, max and step.
| Class | Effect | Type |
|---|---|---|
.number-input | The frame, field-shaped. | root |
.number-input-xs.number-input-sm.number-input-md.number-input-lg.number-input-xl | Sets size, one class per value. | axis size |
.number-input-dec | The − button, drawn with controls. | part |
.number-input-field | The input: a text field with a numeric keyboard, filtered to what a number can be. Its figure sits at the end, or centred between the buttons. | part |
.number-input-inc | The + button, drawn with controls. | part |