T

NumberConstraints

The constraints a numeric input checks typed text against.

type NumberConstraints = { … }

Members

integer?boolean

Rejects text with a fractional part. Defaults to false.

maximum?number

The largest accepted value.

minimum?number

The smallest accepted value.

step?number

Accepts only whole multiples of this.