Skip to content


A widget which displays static text, but which can also contain more complex Rich renderables.

  • Focusable
  • Container


The example below shows how you can use a Label widget to display some text.

LabelApp Hello, world!

from import App, ComposeResult
from textual.widgets import Label

class LabelApp(App):
    def compose(self) -> ComposeResult:
        yield Label("Hello, world!")

if __name__ == "__main__":
    app = LabelApp()

Reactive Attributes

This widget has no reactive attributes.


This widget sends no messages.

See Also