Skip to content

UIText

Represents text inside a UI.

const text = app.create('uitext')
text.value = 'Hello world'

Either none or flex. Defaults to flex.

The background color of the view. Can be hex (eg #000000) or rgba (eg rgba(0, 0, 0, 0.5)). Defaults to null.

The radius of the border in pixels.

The outer margin of the view in pixels. Defaults to 0.

The inner padding of the view in pixels. Defaults to 0.

The text to display.

The font size in pixels. Defauls to 16.

The font color. Defauls to #000000.

The line height. Defaults to 1.2.

Options: left, center, right. Defaults to left.

Defaults to Rubik.

Defaults to normal, can also be a number like 100 or string like bold.

Inherits all Node properties