Skip to content
On this page

Interface: UIElementProps ​

WebSG.UIElementProps

Hierarchy ​

Table of contents ​

Properties ​

Properties ​

alignContent ​

• Optional alignContent: FlexAlign

The alignment of the element's content.

Defined in ​

websg.d.ts:1351


alignItems ​

• Optional alignItems: FlexAlign

The alignment of the element's items.

Defined in ​

websg.d.ts:1355


alignSelf ​

• Optional alignSelf: FlexAlign

The alignment of the element itself.

Defined in ​

websg.d.ts:1359


backgroundColor ​

• Optional backgroundColor: ArrayLike<number>

The background color of the element.

Defined in ​

websg.d.ts:1411


borderColor ​

• Optional borderColor: ArrayLike<number>

The border color of the element.

Defined in ​

websg.d.ts:1415


borderRadius ​

• Optional borderRadius: ArrayLike<number>

The border radius of the element in pixels.

Defined in ​

websg.d.ts:1431


borderWidth ​

• Optional borderWidth: ArrayLike<number>

The border width of the element in pixels.

Defined in ​

websg.d.ts:1427


bottom ​

• Optional bottom: number

The distance from the bottom edge of the parent element.

Defined in ​

websg.d.ts:1339


flexBasis ​

• Optional flexBasis: number

The initial size of the element along the main axis.

Defined in ​

websg.d.ts:1371


flexDirection ​

• Optional flexDirection: FlexDirection

The direction of the flex layout.

Defined in ​

websg.d.ts:1363


flexGrow ​

• Optional flexGrow: number

The factor by which the element should grow if there is extra space.

Defined in ​

websg.d.ts:1375


flexShrink ​

• Optional flexShrink: number

The factor by which the element should shrink if there is not enough space.

Defined in ​

websg.d.ts:1379


flexWrap ​

• Optional flexWrap: FlexWrap

The wrapping behavior of the flex layout.

Defined in ​

websg.d.ts:1367


height ​

• Optional height: number

The height of the element in pixels.

Defined in ​

websg.d.ts:1391


justifyContent ​

• Optional justifyContent: FlexJustify

The justification of the element's content.

Defined in ​

websg.d.ts:1383


left ​

• Optional left: number

The distance from the left edge of the parent element.

Defined in ​

websg.d.ts:1343


margin ​

• Optional margin: ArrayLike<number>

The margin of the element in pixels.

Defined in ​

websg.d.ts:1423


maxHeight ​

• Optional maxHeight: number

The maximum height of the element in pixels.

Defined in ​

websg.d.ts:1407


maxWidth ​

• Optional maxWidth: number

The maximum width of the element in pixels.

Defined in ​

websg.d.ts:1403


minHeight ​

• Optional minHeight: number

The minimum height of the element in pixels.

Defined in ​

websg.d.ts:1399


minWidth ​

• Optional minWidth: number

The minimum width of the element in pixels.

Defined in ​

websg.d.ts:1395


padding ​

• Optional padding: ArrayLike<number>

The padding of the element in pixels.

Defined in ​

websg.d.ts:1419


position ​

• Optional position: ElementPositionType

The position type of the element (ex. "relative" or "absolute").

Defined in ​

websg.d.ts:1347


• Optional right: number

The distance from the right edge of the parent element.

Defined in ​

websg.d.ts:1335


top ​

• Optional top: number

The distance from the top edge of the parent element.

Defined in ​

websg.d.ts:1331


width ​

• Optional width: number

The width of the element in pixels.

Defined in ​

websg.d.ts:1387