mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-17 10:35:28 -07:00
Add placeholder text to input example
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user