Skip to content

@relu-interactives/spatial-ecs


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

Type Alias: UIPanelOptions ​

ts
type UIPanelOptions = {
  width?: number;
  height?: number;
  backgroundColor?: string;
  backgroundOpacity?: number;
  cornerRadius?: number;
  borderWidth?: number;
  borderColor?: string;
  pixelDensity?: number;
  follow?: UiFollowMode;
  style?: UiStyle;
  tokens?: UiTokens;
  theme?: string;
  variant?: UiPanelVariant;
  renderer?: UiRendererMode;
};

Defined in: components/UIPanel.ts:20

Optional initializer for UIPanelComponent.

Properties ​

PropertyTypeDefined in
width?numbercomponents/UIPanel.ts:21
height?numbercomponents/UIPanel.ts:22
backgroundColor?stringcomponents/UIPanel.ts:23
backgroundOpacity?numbercomponents/UIPanel.ts:24
cornerRadius?numbercomponents/UIPanel.ts:25
borderWidth?numbercomponents/UIPanel.ts:26
borderColor?stringcomponents/UIPanel.ts:27
pixelDensity?numbercomponents/UIPanel.ts:28
follow?UiFollowModecomponents/UIPanel.ts:29
style?UiStylecomponents/UIPanel.ts:30
tokens?UiTokenscomponents/UIPanel.ts:31
theme?stringcomponents/UIPanel.ts:32
variant?UiPanelVariantcomponents/UIPanel.ts:33
renderer?UiRendererModecomponents/UIPanel.ts:34