UITextProps
Defined in: ui/src/types.ts:224
Props for UIText (used by reconciler and props-driven constructor).
Extends
Section titled “Extends”Properties
Section titled “Properties”alignSelf?
Section titled “alignSelf?”
optionalalignSelf?:"stretch"|"auto"|"flex-start"|"center"|"flex-end"|"baseline"
Defined in: ui/src/types.ts:126
Inherited from
Section titled “Inherited from”bitmap?
Section titled “bitmap?”
optionalbitmap?:BitmapTextOption
Defined in: ui/src/types.ts:246
Render with a bitmap font instead of canvas-rasterised Text. Pixel-art
escape hatch — canvas text blurs at non-integer scale on non-Retina
displays. true bakes a dynamic font from style; { font } uses an
installed/loaded font by name. See BitmapTextOption. Yoga
measurement (wrap / truncate) is unchanged.
bottom?
Section titled “bottom?”
optionalbottom?:PositionValue
Defined in: ui/src/types.ts:152
Offset from the containing block’s bottom edge — px or "<n>%" (only applies to position: "absolute").
Inherited from
Section titled “Inherited from”children?
Section titled “children?”
optionalchildren?:string
Defined in: ui/src/types.ts:228
consumeInput?
Section titled “consumeInput?”
optionalconsumeInput?:boolean
Defined in: ui/src/types.ts:198
Inherited from
Section titled “Inherited from”ConsumeInputProps.consumeInput
flexBasis?
Section titled “flexBasis?”
optionalflexBasis?:LayoutValue
Defined in: ui/src/types.ts:125
Inherited from
Section titled “Inherited from”flexGrow?
Section titled “flexGrow?”
optionalflexGrow?:number
Defined in: ui/src/types.ts:123
Inherited from
Section titled “Inherited from”flexShrink?
Section titled “flexShrink?”
optionalflexShrink?:number
Defined in: ui/src/types.ts:124
Inherited from
Section titled “Inherited from”height?
Section titled “height?”
optionalheight?:LayoutValue
Defined in: ui/src/types.ts:115
Inherited from
Section titled “Inherited from”
optionalleft?:PositionValue
Defined in: ui/src/types.ts:146
Offset from the containing block’s left edge — px or "<n>%" (only applies to position: "absolute").
Inherited from
Section titled “Inherited from”margin?
Section titled “margin?”
optionalmargin?:number| {bottom?:number;left?:number;right?:number;top?:number; }
Defined in: ui/src/types.ts:120
Inherited from
Section titled “Inherited from”maxHeight?
Section titled “maxHeight?”
optionalmaxHeight?:LayoutValue
Defined in: ui/src/types.ts:119
Inherited from
Section titled “Inherited from”maxWidth?
Section titled “maxWidth?”
optionalmaxWidth?:LayoutValue
Defined in: ui/src/types.ts:117
Inherited from
Section titled “Inherited from”minHeight?
Section titled “minHeight?”
optionalminHeight?:LayoutValue
Defined in: ui/src/types.ts:118
Inherited from
Section titled “Inherited from”minWidth?
Section titled “minWidth?”
optionalminWidth?:LayoutValue
Defined in: ui/src/types.ts:116
Inherited from
Section titled “Inherited from”onHover?
Section titled “onHover?”
optionalonHover?: (hovering) =>void
Defined in: ui/src/types.ts:220
Parameters
Section titled “Parameters”hovering
Section titled “hovering”boolean
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onPointerOut?
Section titled “onPointerOut?”
optionalonPointerOut?: () =>void
Defined in: ui/src/types.ts:219
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”PointerEventProps.onPointerOut
onPointerOver?
Section titled “onPointerOver?”
optionalonPointerOver?: () =>void
Defined in: ui/src/types.ts:218
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”PointerEventProps.onPointerOver
position?
Section titled “position?”
optionalposition?:"relative"|"absolute"
Defined in: ui/src/types.ts:144
Positioning mode for this element relative to its parent. Defaults to
"relative" — the element flows in the parent’s flex layout. Set to
"absolute" to lift the element out of the flow and pin it via
left / top / right / bottom against the parent’s content box.
A position: "relative" ancestor acts as the containing block for any
absolute-positioned descendants — useful for HUD overlays, modal
backdrops, and badge markers. See <ZStack> in @yagejs/ui-react for
an opinionated overlay primitive.
Inherited from
Section titled “Inherited from”resolution?
Section titled “resolution?”
optionalresolution?:number
Defined in: ui/src/types.ts:253
Per-text render resolution. Mirrors the Pixi v8 Text constructor
option — resolution is NOT a TextStyle property in v8, so this is
the only way to get crisp canvas text without a prototype patch.
Ignored when bitmap is set.
right?
Section titled “right?”
optionalright?:PositionValue
Defined in: ui/src/types.ts:150
Offset from the containing block’s right edge — px or "<n>%" (only applies to position: "absolute").
Inherited from
Section titled “Inherited from”style?
Section titled “style?”
optionalstyle?:Partial<TextStyleOptions>
Defined in: ui/src/types.ts:229
optionaltop?:PositionValue
Defined in: ui/src/types.ts:148
Offset from the containing block’s top edge — px or "<n>%" (only applies to position: "absolute").
Inherited from
Section titled “Inherited from”truncate?
Section titled “truncate?”
optionaltruncate?:"clip"|"ellipsis"
Defined in: ui/src/types.ts:238
Overflow behavior when the rendered text is wider than the layout slot:
- omitted: wrap to the layout width (default)
"clip": render a single line; visible overflow is cut by the parent panel’soverflowsetting."ellipsis": render a single line truncated with…so the text fits within the layout width.
visible?
Section titled “visible?”
optionalvisible?:boolean
Defined in: ui/src/types.ts:153
Inherited from
Section titled “Inherited from”width?
Section titled “width?”
optionalwidth?:LayoutValue
Defined in: ui/src/types.ts:114