From 2fd583c8ef43786d58beb63aae5d88b65c14dee2 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Wed, 1 Jun 2022 10:48:00 -0400 Subject: [PATCH] feat(textarea): Add multi-line text input --- README.md | 12 + cursor/cursor.go | 207 +++++++ textarea/textarea.go | 1120 +++++++++++++++++++++++++++++++++++++ textarea/textarea_test.go | 446 +++++++++++++++ 4 files changed, 1785 insertions(+) create mode 100644 cursor/cursor.go create mode 100644 textarea/textarea.go create mode 100644 textarea/textarea_test.go diff --git a/README.md b/README.md index a6d2768..d699833 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,18 @@ the common, and many customization options. * [Example code, one field](https://github.com/charmbracelet/tea/tree/master/examples/textinput/main.go) * [Example code, many fields](https://github.com/charmbracelet/tea/tree/master/examples/textinputs/main.go) +## Text Area + +Text Area Example + +A text area field, akin to an `