mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Set character limits on text input examples
This commit is contained in:
@@ -31,6 +31,7 @@ func initialModel() model {
|
||||
inputModel := input.NewModel()
|
||||
inputModel.Placeholder = "Pikachu"
|
||||
inputModel.Focus()
|
||||
inputModel.CharLimit = 20
|
||||
|
||||
return model{
|
||||
textInput: inputModel,
|
||||
|
||||
Reference in New Issue
Block a user