LayoutProps
Defined in: ui/src/types.ts:113
Common layout props every element can accept (applied to its Yoga node).
Extended by
Section titled “Extended by”UITextPropsUIButtonPropsUIImagePropsUINineSlicePropsUIProgressBarPropsUICheckboxPropsPanelPropsScrollViewPropsPixiFancyButtonPropsPixiCheckboxPropsPixiProgressBarPropsPixiSliderPropsPixiInputPropsPixiSelectPropsPixiRadioGroupProps
Properties
Section titled “Properties”alignSelf?
Section titled “alignSelf?”
optionalalignSelf?:"stretch"|"auto"|"flex-start"|"center"|"flex-end"|"baseline"
Defined in: ui/src/types.ts:126
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").
flexBasis?
Section titled “flexBasis?”
optionalflexBasis?:LayoutValue
Defined in: ui/src/types.ts:125
flexGrow?
Section titled “flexGrow?”
optionalflexGrow?:number
Defined in: ui/src/types.ts:123
flexShrink?
Section titled “flexShrink?”
optionalflexShrink?:number
Defined in: ui/src/types.ts:124
height?
Section titled “height?”
optionalheight?:LayoutValue
Defined in: ui/src/types.ts:115
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").
margin?
Section titled “margin?”
optionalmargin?:number| {bottom?:number;left?:number;right?:number;top?:number; }
Defined in: ui/src/types.ts:120
maxHeight?
Section titled “maxHeight?”
optionalmaxHeight?:LayoutValue
Defined in: ui/src/types.ts:119
maxWidth?
Section titled “maxWidth?”
optionalmaxWidth?:LayoutValue
Defined in: ui/src/types.ts:117
minHeight?
Section titled “minHeight?”
optionalminHeight?:LayoutValue
Defined in: ui/src/types.ts:118
minWidth?
Section titled “minWidth?”
optionalminWidth?:LayoutValue
Defined in: ui/src/types.ts:116
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.
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").
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").
visible?
Section titled “visible?”
optionalvisible?:boolean
Defined in: ui/src/types.ts:153
width?
Section titled “width?”
optionalwidth?:LayoutValue
Defined in: ui/src/types.ts:114