charmbracelet / charmbracelet/bubbles
feat: Add NumberInput in bubbles
- Dominant language
- Go
- Stars
- 8.9k
- Forks
- 457
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 5
Description
**Is your feature request related to a problem? Please describe.**
Currently, Bubbles lacks a component for numeric input fields. Users may require this functionality for various use cases, such as collecting numerical data (Number only) or setting numeric parameters.
Describe the solution you'd like
I would like to propose adding a NumberInput component to our library. This component would provide users with a text input field specifically designed for entering numeric values. It should support pasting functionality. Additionally, it should offer customization options for styling and behavior to suit different application needs.
Describe alternatives you've considered
One alternative could be using a standard text input field and validating the input on the client-side to ensure it only accepts numeric values. However, this approach may not provide the user with a consistent experience and could require additional effort for input validation and error handling.
[Assign this to Me.]
[should we add this feat in `textInput` or should we create `numberInput`]
Contributor guide
Assessment
This issue has not been assessed yet.