Basic number field
Wrap your form controls in a form row
Use the
EuiFormRow component to easily and accessibly associate form components with labels, help text, and error text.Use a EuiFieldNumber to allow users to enter numbers. This component renders a basic HTML
<input type="number">
element.Loading...
Native validation
When passed the min
, max
, or step
props, EuiFieldNumber will automatically show an invalid/error state if the user inputs a number outside the min/max range, or a number that is not a multiple of step
.
Any native error messages will be visible as a browser tooltip on mouseover.
Loading...
Props
EuiFieldNumber
Extends InputHTMLAttributes