# LoadingWidget

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/widgets/loading/LoadingWidget)

Animated loading indicator with status text and elapsed time.

Displays: <spinner> Thinking... (3s, esc to interrupt)

## Signature

```python
LoadingWidget(
    self,
    status: str = 'Thinking',
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `status` | `str` | No | Initial status text to display (default: `'Thinking'`) |

## Extends

- `Static`

## Constructors

```python
__init__(
    self,
    status: str = 'Thinking',
) -> None
```

| Name | Type |
|------|------|
| `status` | `str` |


## Properties

- `DEFAULT_CSS`

## Methods

- [`compose()`](https://reference.langchain.com/python/deepagents-cli/widgets/loading/LoadingWidget/compose)
- [`on_mount()`](https://reference.langchain.com/python/deepagents-cli/widgets/loading/LoadingWidget/on_mount)
- [`on_unmount()`](https://reference.langchain.com/python/deepagents-cli/widgets/loading/LoadingWidget/on_unmount)
- [`remove()`](https://reference.langchain.com/python/deepagents-cli/widgets/loading/LoadingWidget/remove)
- [`set_status()`](https://reference.langchain.com/python/deepagents-cli/widgets/loading/LoadingWidget/set_status)
- [`pause()`](https://reference.langchain.com/python/deepagents-cli/widgets/loading/LoadingWidget/pause)
- [`resume()`](https://reference.langchain.com/python/deepagents-cli/widgets/loading/LoadingWidget/resume)
- [`stop()`](https://reference.langchain.com/python/deepagents-cli/widgets/loading/LoadingWidget/stop)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/bb27e62ebe44dd6e8104a504b1718ce87acc7ffa/libs/cli/deepagents_cli/widgets/loading.py#L53)