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



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

Defined in: [src/canvas/decorators/canvas-element-decorator.ts:270](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/canvas/decorators/canvas-element-decorator.ts#L270)

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.
