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



\> **get**\<`T`>(`canvasId`): `T` | `undefined`

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

Get a canvas component by the id.

Type Parameters [#type-parameters]

T [#t]

`T` *extends* *typeof* [`CanvasBaseItem`](/jsdoc/pixi-vn/index/classes/CanvasBaseItem)

Parameters [#parameters]

canvasId [#canvasid]

`string`

The id of the canvas component.

Returns [#returns]

`T` | `undefined`

The canvas component type.
