import { NumberInput } from "@wfp/react"
The NumberInput component allows users to input numeric values. It includes controls for incrementally increasing or decreasing the value.
To use the NumberInput component, you should import it and render it within a parent component:
import { NumberInput } from "@wfp/react";
<NumberInputid="number-input"min={0}max={100}step={5}onChange={(evt, value, direction) => {console.log(`Value: ${value}, Direction: ${direction}`);}}/>
This will render a NumberInput component with a minimum value of 0, a maximum value of 100, and an increment/decrement step of 5.
React.forwardRef method, allowing refs to be forwarded to it.capMin and capMax to ensure the value remains within the specified min and max bounds.