# 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:14](https://github.com/DRincs-Productions/pixi-vn/blob/efc9536feda21bc17c50370f5e35fd8d8d88843a/src/narration/decorators/newLabel.ts#L14)

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
