```ts
function withTabName<P>(Component, componentProps?): (props) => Element;
```

## Type Parameters

| Type Parameter |
| ------ |
| `P` |

## Parameters

| Parameter | Type |
| ------ | ------ |
| `Component` | `ComponentType<P>` |
| `componentProps?` | `P` |

## Returns

```ts
(props): Element;
```

### Parameters

| Parameter | Type |
| ------ | ------ |
| `props` | `P` & `ClassAttributes<HTMLButtonElement>` & `ButtonHTMLAttributes<HTMLButtonElement>` |

### Returns

`Element`
