-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add NumberInput in bubbles #481
Comments
Hi! So actually |
@meowgorithm Thank you for the reply. |
So most of these can be done with For password input you can set import "github.com/charmbracelet/bubbles/textinput"
passwordInput := textinput.New()
passwordInput.EchoMode = textinput.EchoPassword |
Understood. I was just trying to contribute to the codebase. |
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 createnumberInput
]The text was updated successfully, but these errors were encountered: