> 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/videoid-identificacion-en-video/eventos/usercancel.md).

# userCancel

## Details

The user has closed the widget before completing the extraction process.

**Event:** `userCancel`

**Type:** `CustomEvent`

### Syntax

```typescript
videoId.addEventListener('userCancel', onUserCancel);
```

## Description

This event is emitted when the user presses the cross button to close the component and finishes the capture process.

***

## Example

```jsx
<facephi-video-id
    onUserCancel={() => {
        console.log('The capture process has been cancelled');
    }}
/>
```
