Interface: UIElementProps
WebSG.UIElementProps
Hierarchy
UIElementProps
Table of contents
Properties
- alignContent
- alignItems
- alignSelf
- backgroundColor
- borderColor
- borderRadius
- borderWidth
- bottom
- flexBasis
- flexDirection
- flexGrow
- flexShrink
- flexWrap
- height
- justifyContent
- left
- margin
- maxHeight
- maxWidth
- minHeight
- minWidth
- padding
- position
- right
- top
- width
Properties
alignContent
• Optional alignContent: FlexAlign
The alignment of the element's content.
Defined in
alignItems
• Optional alignItems: FlexAlign
The alignment of the element's items.
Defined in
alignSelf
• Optional alignSelf: FlexAlign
The alignment of the element itself.
Defined in
backgroundColor
• Optional backgroundColor: ArrayLike<number>
The background color of the element.
Defined in
borderColor
• Optional borderColor: ArrayLike<number>
The border color of the element.
Defined in
borderRadius
• Optional borderRadius: ArrayLike<number>
The border radius of the element in pixels.
Defined in
borderWidth
• Optional borderWidth: ArrayLike<number>
The border width of the element in pixels.
Defined in
bottom
• Optional bottom: number
The distance from the bottom edge of the parent element.
Defined in
flexBasis
• Optional flexBasis: number
The initial size of the element along the main axis.
Defined in
flexDirection
• Optional flexDirection: FlexDirection
The direction of the flex layout.
Defined in
flexGrow
• Optional flexGrow: number
The factor by which the element should grow if there is extra space.
Defined in
flexShrink
• Optional flexShrink: number
The factor by which the element should shrink if there is not enough space.
Defined in
flexWrap
• Optional flexWrap: FlexWrap
The wrapping behavior of the flex layout.
Defined in
height
• Optional height: number
The height of the element in pixels.
Defined in
justifyContent
• Optional justifyContent: FlexJustify
The justification of the element's content.
Defined in
left
• Optional left: number
The distance from the left edge of the parent element.
Defined in
margin
• Optional margin: ArrayLike<number>
The margin of the element in pixels.
Defined in
maxHeight
• Optional maxHeight: number
The maximum height of the element in pixels.
Defined in
maxWidth
• Optional maxWidth: number
The maximum width of the element in pixels.
Defined in
minHeight
• Optional minHeight: number
The minimum height of the element in pixels.
Defined in
minWidth
• Optional minWidth: number
The minimum width of the element in pixels.
Defined in
padding
• Optional padding: ArrayLike<number>
The padding of the element in pixels.
Defined in
position
• Optional position: ElementPositionType
The position type of the element (ex. "relative" or "absolute").
Defined in
right
• Optional right: number
The distance from the right edge of the parent element.
Defined in
top
• Optional top: number
The distance from the top edge of the parent element.
Defined in
width
• Optional width: number
The width of the element in pixels.