Set character limits on text input examples

This commit is contained in:
Christian Rocha
2020-10-21 10:19:34 -04:00
parent b8bc66ed6f
commit 9e9e05774c
2 changed files with 4 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ func initialModel() model {
inputModel := input.NewModel()
inputModel.Placeholder = "Pikachu"
inputModel.Focus()
inputModel.CharLimit = 20
return model{
textInput: inputModel,