field.number

A component that allows the user to enter a number.

Only numbers and decimal separators can be entered in the field. The user can enter a dot or a comma as a separator, but the dot is always used in the output.

When the user enters a number, the separator automatically changes to the one specified in the regional settings. For Russia, the separator is a comma.

You can also set up validation, for example, disable negative or fractional numbers. Learn more.

Component properties

NameTypeDescription
type*"field.number"

Set component type

data*writable

Data with values that will be processed or changed.

labelstring

Label above the component.

hintstring

Hint text.

maximuminteger

Maximum number that can be entered.

minimuminteger

Minimum number that can be entered.

placeholderstring

A semi-transparent label that is shown in the box when it is empty.

validationcondition

Validation based on condition.

NameTypeDescription
type*"field.number"

Set component type

data*writable

Data with values that will be processed or changed.

labelstring

Label above the component.

hintstring

Hint text.

maximuminteger

Maximum number that can be entered.

minimuminteger

Minimum number that can be entered.

placeholderstring

A semi-transparent label that is shown in the box when it is empty.

validationcondition

Validation based on condition.