tremorlabs / tremor

React components to build charts and dashboards
https://npm.tremor.so
Apache License 2.0
16.22k stars 467 forks source link

[Feature]: Add reset To NumberInput #1108

Closed Mirolankri closed 3 months ago

Mirolankri commented 3 months ago

What problem does this feature solve?

src/components/input-elements/NumberInput/NumberInput.tsx

add click reset to default value

What does the proposed API look like?

src/components/input-elements/NumberInput/NumberInput.tsx

severinlandolt commented 3 months ago

To much props, I would use it as a controlled component and reset it via the state.