package ui import ( "github.com/gdamore/tcell/v2" "github.com/rivo/tview" ) func NewMessageInputField() *tview.InputField { inputField := tview.NewInputField() inputField. SetPlaceholder("Message..."). SetPlaceholderTextColor(tcell.ColorWhite). SetFieldBackgroundColor(tview.Styles.PrimitiveBackgroundColor). SetBorder(true). SetBorderPadding(0, 0, 1, 0). SetTitleAlign(tview.AlignLeft) return inputField }