mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
examples/README.md GIFs (#470)
* docs(examples): Add `examples/README.md` Adds `examples/README.md` with GIFs of examples * docs(examples): Individual READMEs * docs(examples): add short description to each example
This commit is contained in:
3
examples/chat/README.md
Normal file
3
examples/chat/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Chat
|
||||
|
||||
<img width="800" src="https://stuff.charm.sh/bubbletea-examples/chat.gif" />
|
||||
@@ -51,11 +51,9 @@ func initialModel() model {
|
||||
|
||||
ta.ShowLineNumbers = false
|
||||
|
||||
vp := viewport.New(30, 10)
|
||||
vp.SetContent(`Welcome to the Bubbles multi-line text input!
|
||||
Try typing any message and pressing ENTER.
|
||||
If you write a long message, it will automatically wrap :D
|
||||
`)
|
||||
vp := viewport.New(30, 5)
|
||||
vp.SetContent(`Welcome to the chat room!
|
||||
Type a message and press Enter to send.`)
|
||||
|
||||
ta.KeyMap.InsertNewline.SetEnabled(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user