NumberControl

Basicly an input a number.

<NumberControl
	onChange={ e => console.log(e) }
	isDragEnabled
	isShiftStepEnabled
	shiftStep={ 10 }
	step={10}
	value={ 10 }
/>

However it has some handy props as “isDragEnabled”, “isShiftStepEnabled”, “shiftStep” and “step”. This allows you to increase/decrease the number using the arrows or by dragging. Is an experimental component. Use “__experimentalNumberControl to import it.

GitHub URL
Classification

Category

Components