Refactor custom input-28 with Increment/Decrement Buttons
This pull request removes the dependency on react-aria-components in the input-28, implementing custom logic to handle number input, validation, and increment/decrement functionality. The changes simplify the project by eliminating external dependencies and improving native React integration.
Changes Overview
Key Improvements:
Replaced react-aria-components with native React logic for number input handling.
Added custom increment and decrement functionality with boundary validation (minValue and maxValue).
Dynamic precision management based on the input value or step size.
Enhanced hover, focus, and disabled states for buttons.
Utility Enhancements:
validateValue: Ensures input value stays within defined boundaries.
adjustValue: Handles precise increment and decrement operations.
handleChange and handleBlur: Validates, formats, and adjusts the input value dynamically.
Refactor
custom input-28
with Increment/Decrement ButtonsThis pull request removes the dependency on
react-aria-components
in theinput-28
, implementing custom logic to handle number input, validation, and increment/decrement functionality. The changes simplify the project by eliminating external dependencies and improving native React integration.Changes Overview
Key Improvements:
react-aria-components
with native React logic for number input handling.minValue
andmaxValue
).Utility Enhancements:
validateValue
: Ensures input value stays within defined boundaries.adjustValue
: Handles precise increment and decrement operations.handleChange
andhandleBlur
: Validates, formats, and adjusts the input value dynamically.Screenshot