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



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

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

Get a canvas component by the id.

## Type Parameters [#type-parameters]

### T [#t]

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

## Parameters [#parameters]

### canvasId [#canvasid]

`string`

The id of the canvas component.

## Returns [#returns]

`T` | `undefined`

The canvas component type.
