# Function: newLabel() (/jsdoc/pixi-vn/index/functions/newLabel)



\> **newLabel**\<`T`>(`id`, `steps`, `props?`): [`Label`](/jsdoc/pixi-vn/index/classes/Label)\<`T`>

Defined in: [src/narration/decorators/newLabel.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/narration/decorators/newLabel.ts#L15)

Creates a new label and registers it in the system.
&#x2A;*This function must be called at least once at system startup to register the label, otherwise the system cannot be used.**

Type Parameters [#type-parameters]

T [#t]

`T` *extends* `object` = \{ }

Parameters [#parameters]

id [#id]

`string`

A unique identifier. Used to reference the `label` in the game (must be unique).

steps [#steps]

[`LabelSteps`](/jsdoc/pixi-vn/index/type-aliases/LabelSteps)\<`T`> | (() => [`LabelSteps`](/jsdoc/pixi-vn/index/type-aliases/LabelSteps)\<`T`>)

An array of functions to be executed in order. To create a dynamic array.

props? [#props]

[`LabelProps`](/jsdoc/pixi-vn/index/interfaces/LabelProps)\<[`Label`](/jsdoc/pixi-vn/index/classes/Label)\<`T`>, `number`>

An object with the `label`'s options

Returns [#returns]

[`Label`](/jsdoc/pixi-vn/index/classes/Label)\<`T`>

The created label
