# InputActionButton

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/InputActionButton)

Small clickable button shown at the right edge of the chat input row.

Provides discoverable mouse alternatives to keyboard shortcuts for
clearing (`[ X ]`) and copying (`[ COPY ]`) the current draft.

## Signature

```python
InputActionButton(
    self,
    label: str,
    action: InputAction,
    **kwargs: Any = {},
)
```

## Extends

- `Static`

## Constructors

```python
__init__(
    self,
    label: str,
    action: InputAction,
    **kwargs: Any = {},
) -> None
```

| Name | Type |
|------|------|
| `label` | `str` |
| `action` | `InputAction` |


## Properties

- `DEFAULT_CSS`
- `allow_select`

## Methods

- [`on_click()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/InputActionButton/on_click)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2f56309d821db4a0d06ee03959cf842c91b7f228/libs/code/deepagents_code/tui/widgets/chat_input.py#L285)