Skip to content

LoadingIndicator

Displays pulsating dots to indicate when data is being loaded.

  • Focusable
  • Container

You can set the color of the loading indicator by setting its color style.

Here's how you would do that with CSS:

LoadingIndicator {
    color: red;
}

LoadingApp ● ● ● ● 

from textual.app import App, ComposeResult
from textual.widgets import LoadingIndicator


class LoadingApp(App):
    def compose(self) -> ComposeResult:
        yield LoadingIndicator()


if __name__ == "__main__":
    app = LoadingApp()
    app.run()

See Also