from textual.containers import Vertical, VerticalScroll, HorizontalGroup from textual.widgets import Input, Button, Static class Message(Static): def __init__(self, message): super().__init__() class ChatWindow(Vertical): def compose(self): with VerticalScroll(): pass with HorizontalGroup(): yield Input(placeholder="Send a message") yield Button("", flat=True)