PixiFancyButtonProps
Defined in: ui/src/types.ts:407
Props for PixiFancyButton.
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:137
Inherited from
Section titled “Inherited from”anchor?
Section titled “anchor?”
optionalanchor?:number
Defined in: ui/src/types.ts:419
animations?
Section titled “animations?”
optionalanimations?:FancyButtonAnimations
Defined in: ui/src/types.ts:421
bottom?
Section titled “bottom?”
optionalbottom?:PositionValue
Defined in: ui/src/types.ts:163
Offset from the containing block’s bottom edge — px or "<n>%" (only applies to position: "absolute").
Inherited from
Section titled “Inherited from”consumeInput?
Section titled “consumeInput?”
optionalconsumeInput?:boolean
Defined in: ui/src/types.ts:209
Inherited from
Section titled “Inherited from”ConsumeInputProps.consumeInput
defaultView?
Section titled “defaultView?”
optionaldefaultView?:PixiViewType
Defined in: ui/src/types.ts:408
disabled?
Section titled “disabled?”
optionaldisabled?:boolean
Defined in: ui/src/types.ts:418
disabledView?
Section titled “disabledView?”
optionaldisabledView?:PixiViewType
Defined in: ui/src/types.ts:411
optionalflex?:number
Defined in: ui/src/types.ts:136
Shorthand for the common CSS flex: <number> case — expands to
flexGrow: <number>, flexShrink: 1, flexBasis: 0. Use it for a child
that should fill the remaining main-axis space (e.g. the text column
between a fixed icon and a fixed button): sizing from a 0 basis means it
won’t claim its content width and push its siblings, and its text wraps
cleanly. Prefer this over flexGrow: 1 alone, which keeps flexBasis: auto
(content width) and overflows. Explicit flexGrow/flexShrink/flexBasis
override the parts this expands to.
Inherited from
Section titled “Inherited from”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”hoverView?
Section titled “hoverView?”
optionalhoverView?:PixiViewType
Defined in: ui/src/types.ts:409
optionalicon?:DisplayContainer
Defined in: ui/src/types.ts:413
optionalleft?:PositionValue
Defined in: ui/src/types.ts:157
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”nineSliceSprite?
Section titled “nineSliceSprite?”
optionalnineSliceSprite?: [number,number,number,number]
Defined in: ui/src/types.ts:416
onClick?
Section titled “onClick?”
optionalonClick?: () =>void
Defined in: ui/src/types.ts:417
Returns
Section titled “Returns”void
padding?
Section titled “padding?”
optionalpadding?:number
Defined in: ui/src/types.ts:415
position?
Section titled “position?”
optionalposition?:"relative"|"absolute"
Defined in: ui/src/types.ts:155
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”pressedView?
Section titled “pressedView?”
optionalpressedView?:PixiViewType
Defined in: ui/src/types.ts:410
right?
Section titled “right?”
optionalright?:PositionValue
Defined in: ui/src/types.ts:161
Offset from the containing block’s right edge — px or "<n>%" (only applies to position: "absolute").
Inherited from
Section titled “Inherited from”scale?
Section titled “scale?”
optionalscale?:number
Defined in: ui/src/types.ts:420
optionaltext?:string
Defined in: ui/src/types.ts:412
textOffset?
Section titled “textOffset?”
optionaltextOffset?:object&object
Defined in: ui/src/types.ts:422
Type Declaration
Section titled “Type Declaration”
optionalx?:number
optionaly?:number
Type Declaration
Section titled “Type Declaration”default?
Section titled “default?”
optionaldefault?:object
default.x?
Section titled “default.x?”
optionalx?:number
default.y?
Section titled “default.y?”
optionaly?:number
disabled?
Section titled “disabled?”
optionaldisabled?:object
disabled.x?
Section titled “disabled.x?”
optionalx?:number
disabled.y?
Section titled “disabled.y?”
optionaly?:number
hover?
Section titled “hover?”
optionalhover?:object
hover.x?
Section titled “hover.x?”
optionalx?:number
hover.y?
Section titled “hover.y?”
optionaly?:number
pressed?
Section titled “pressed?”
optionalpressed?:object
pressed.x?
Section titled “pressed.x?”
optionalx?:number
pressed.y?
Section titled “pressed.y?”
optionaly?:number
textStyle?
Section titled “textStyle?”
optionaltextStyle?:Partial<TextStyleOptions>
Defined in: ui/src/types.ts:414
optionaltop?:PositionValue
Defined in: ui/src/types.ts:159
Offset from the containing block’s top edge — px or "<n>%" (only applies to position: "absolute").
Inherited from
Section titled “Inherited from”visible?
Section titled “visible?”
optionalvisible?:boolean
Defined in: ui/src/types.ts:164
Inherited from
Section titled “Inherited from”width?
Section titled “width?”
optionalwidth?:LayoutValue
Defined in: ui/src/types.ts:114