Skip to content


Added in version 0.5.0

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 posts no messages.


This widget has no bindings.

Component Classes

This widget has no component classes.

textual.widgets.Label class

Bases: Static

A simple label widget for displaying text-oriented renderables.