Add placeholder text to input example

This commit is contained in:
Christian Rocha
2020-02-01 22:28:31 -05:00
parent 5383f5a61e
commit 2e6babae9e
3 changed files with 9 additions and 10 deletions

View File

@@ -34,8 +34,11 @@ func main() {
}
func initialize() (tea.Model, tea.Cmd) {
inputModel := input.DefaultModel()
inputModel.Placeholder = "Pikachu"
return Model{
Input: input.DefaultModel(),
Input: inputModel,
Error: nil,
}, nil
}