# Function: showText() (/pixi-vn/index/functions/showText)



\> **showText**(`alias`, `text`, `options?`): [`Text`](/pixi-vn/index/classes/Text)

Defined in: [src/canvas/functions/text-utility.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/canvas/functions/text-utility.ts#L14)

Add and show a text in the canvas.

## Parameters [#parameters]

### alias [#alias]

`string`

The unique alias of the text. You can use this alias to refer to this text.

### text [#text]

`string`

### options? [#options]

`Omit`\<[`TextOptions`](/pixi-vn/index/interfaces/TextOptions), `"text"`>

The options of the text.

## Returns [#returns]

[`Text`](/pixi-vn/index/classes/Text)

This function returns an [Text](/pixi-vn/index/classes/Text) that you can use to manipulate the component.

## Example [#example]

```ts
let text = showText("text", "Hello World", { fontSize: 24, fill: "white" })
```
