Skip to content

Conversation

devrodrigolec
Copy link
Collaborator

Closes #216


const handleDecrement = () => {
if (typeof value === 'number') {
if (value === 0) return;
Copy link
Member

@antonio06 antonio06 Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of this, i prefrer do this:

if (value > 0) {
setValue(value - 1);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create an input stepper component (place it under rich components)

3 participants