> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ButtonSubscription

> Button event subscription type.

`ButtonSubscription` is returned after registering a button listener, and can be used to unsubscribe.

```ts theme={null}
type ButtonSubscription = {
  remove(): void;
};
```

| Field    | Type         | Description                          |
| -------- | ------------ | ------------------------------------ |
| `remove` | `() => void` | Unregister the button event listener |
