[@applemusic-like-lyrics/core](../README.md) / [Exports](../modules.md) / HasElement

# Interface: HasElement

拥有一个 HTML 元素的接口

可以通过 `getElement` 获取这个类所对应的 HTML 元素实例

## Implemented by

- [`AbstractBaseRenderer`](../classes/AbstractBaseRenderer.md)
- [`LyricPlayer`](../classes/LyricPlayer.md)

## Table of contents

### Methods

- [getElement](HasElement.md#getelement)

## Methods

### getElement

▸ **getElement**(): `HTMLElement`

获取这个类所对应的 HTML 元素实例

#### Returns

`HTMLElement`

#### Defined in

[packages/core/src/interfaces.ts:8](https://github.com/Steve-xmh/applemusic-like-lyrics/blob/98c389d/packages/core/src/interfaces.ts#L8)
