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



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

Defined in: [src/canvas/decorators/canvas-element-decorator.ts:287](https://github.com/DRincs-Productions/pixi-vn/blob/efc9536feda21bc17c50370f5e35fd8d8d88843a/src/canvas/decorators/canvas-element-decorator.ts#L287)

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.
