Skip to content

Commit

Permalink
fix: chat example
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Jun 28, 2022
1 parent 628b948 commit e9d7e1b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/chat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ type model struct {
func initialModel() model {
ta := textarea.New()
ta.Placeholder = "Send a message..."
ta.Focus()
ta.Prompt = "┃ "
ta.CharLimit = 280
ta.Width = 30
ta.Height = 3
ta.ShowLineNumbers = false
ta.Focus()
ta.FocusedStyle.CursorLine = lipgloss.NewStyle()
ta.SetWidth(30)
ta.SetHeight(3)

vp := viewport.New(30, 10)
vp.SetContent(`Welcome to the Bubbles multi-line text input!
Expand Down

0 comments on commit e9d7e1b

Please sign in to comment.