> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/selphid-documentos/eventos/timeouterrorbuttonclick.md).

# timeoutErrorButtonClick

## Details

It is emitted when the timeout or error button is pressed.

**Event:** `timeoutErrorButtonClick`

**Type:** `FacephiSelphidWidgetCustomEvent<TimeoutButtonClickEvent>` | `CustomEvent<TimeoutButtonClickEvent>`

### Syntax

```typescript
selphid.addEventListener('timeoutErrorButtonClick', onTimeoutErrorButtonClick);
```

### Received object

The payload is of type `SelphidTimeoutButtonClickDetail` and is in `event.detail.detail`:

* `eventType` (`string`): Type of emitted event.
* `message` (`string`): Description of the button action.

## Description

Useful for retrying or redirecting the user.

***

## Example

```jsx
<facephi-selphid-widget
    onTimeoutErrorButtonClick={onTimeoutErrorButtonClick}
/>
```
