Number Field
Overview
The number input component is used for entering numeric values and includes support for visualising and selecting unit types.
Units are something common to BPMs platforms and often help the user rationalise the types of units being captured. This could be various SI units or more arbitary types depending on the type of value being captured.
Interactive demo
The demo below allows you to preview the component. You can play with its props, variations, configuration options and dive into its events and even see them trigger in the event log tab.
MedKit Number Field
Error
string
Array<string>
Error Hidden
boolean
false
Help Text
string
Array<string>
Label
string
Required
Label Hidden
boolean
false
Max
[string number],
Min
[string number],
Placeholder
string
Required
boolean
false
Unit
string
Unit Options
Array<SelectionOption>
[]
Unit Placeholder
string
-
Prepend
string
Prepend Options
Array<SelectionOption>
[]
Prepend Placeholder
string
-
Decimals
number
0
Disable Wheel Scroll
boolean
false
Disable Arrow Keys
boolean
false
No Unit
Unit With Only a Single Option
weeks
With Multiple Units
This is the help text
With Min and Max Values
Prepend With Only a Single Option
= (is equal to)
micrograms/g
With Multiple Prepend
micrograms/g
micrograms/g
Please enter a number that is either 20 or 2000 with the corresponding symbol
Figma Library
You can find the component in our MedKit Figma library.