# Function: has() (/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/has)



\> **has**(`id`): `boolean`

Defined in: [src/canvas/decorators/canvas-element-decorator.ts:291](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/canvas/decorators/canvas-element-decorator.ts#L291)

Check if a canvas component is registered.

## Parameters [#parameters]

### id [#id]

`string`

The id of the canvas component.

## Returns [#returns]

`boolean`

True if the canvas component is registered, false otherwise.
