A number based input. Values should be passed around as strings, as numbers can round / floating point / overflow etc if a number type is used.
Props
Name
Description
Type
Default
disabled
If the field is disabled.
booleanor
undefined
inputProps
Pass props directly to the input.
undefinedor
{ [x: string]: any; }
invalid
If the field is currently in an error state.
booleanor
undefined
name
The name of the field.
string
placeholder
The placeholder for the input.
stringor
undefined
readonly
If the field is editable.
booleanor
undefined
unit
Display a unit beside the input.
stringor
undefined
value
The current value of the field.
string
Events
Event
Detail
Description
enter
any
Emitted on keyup of enter, if no modifier keys are held.
fieldchange
FieldChange<string, string>
Emitted when the value of the field is changed.
Parts
Name
Description
unit
The unit indicator