Number

A number field is used to input numeric data.

import {alinea} from 'alinea'
alinea.number('My number field', {
  minValue: 0,
  maxValue: 10,
  step: 1
})

Properties

step

Specifies the interval between legal numbers in the input field.
Default is 1.

import {alinea} from 'alinea'
alinea.number('My decimal number field', {
  step: 0.01
})