Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / UIButtonOptions

Type Alias: UIButtonOptions ​

ts
type UIButtonOptions = {
  label?: string;
  actionId?: string;
  width?: number;
  height?: number;
  fontSize?: number;
  fontWeight?: number;
  textColor?: string;
  backgroundColor?: string;
  backgroundOpacity?: number;
  cornerRadius?: number;
  borderWidth?: number;
  borderColor?: string;
};

Defined in: components/UIButton.ts:4

Optional initializer for UIButtonComponent.

Properties ​

PropertyTypeDefined in
label?stringcomponents/UIButton.ts:5
actionId?stringcomponents/UIButton.ts:6
width?numbercomponents/UIButton.ts:7
height?numbercomponents/UIButton.ts:8
fontSize?numbercomponents/UIButton.ts:9
fontWeight?numbercomponents/UIButton.ts:10
textColor?stringcomponents/UIButton.ts:11
backgroundColor?stringcomponents/UIButton.ts:12
backgroundOpacity?numbercomponents/UIButton.ts:13
cornerRadius?numbercomponents/UIButton.ts:14
borderWidth?numbercomponents/UIButton.ts:15
borderColor?stringcomponents/UIButton.ts:16