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:
Maas Lalani
2022-10-03 12:06:18 -04:00
committed by GitHub
parent cd3f486ab5
commit 70576bc9e0
41 changed files with 454 additions and 8 deletions

3
examples/chat/README.md Normal file
View File

@@ -0,0 +1,3 @@
# Chat
<img width="800" src="https://stuff.charm.sh/bubbletea-examples/chat.gif" />

View File

@@ -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)