Interface: UIButtonProps
WebSG.UIButtonProps
Interface for UIButton properties.
Hierarchy
↳
UIButtonProps
Table of contents
Properties
- alignContent
- alignItems
- alignSelf
- backgroundColor
- borderColor
- borderRadius
- borderWidth
- bottom
- color
- flexBasis
- flexDirection
- flexGrow
- flexShrink
- flexWrap
- fontFamily
- fontSize
- fontStyle
- fontWeight
- height
- justifyContent
- label
- left
- margin
- maxHeight
- maxWidth
- minHeight
- minWidth
- padding
- position
- right
- top
- value
- width
Properties
alignContent
• Optional
alignContent: FlexAlign
The alignment of the element's content.
Inherited from
Defined in
alignItems
• Optional
alignItems: FlexAlign
The alignment of the element's items.
Inherited from
Defined in
alignSelf
• Optional
alignSelf: FlexAlign
The alignment of the element itself.
Inherited from
Defined in
backgroundColor
• Optional
backgroundColor: ArrayLike
<number
>
The background color of the element.
Inherited from
Defined in
borderColor
• Optional
borderColor: ArrayLike
<number
>
The border color of the element.
Inherited from
Defined in
borderRadius
• Optional
borderRadius: ArrayLike
<number
>
The border radius of the element in pixels.
Inherited from
Defined in
borderWidth
• Optional
borderWidth: ArrayLike
<number
>
The border width of the element in pixels.
Inherited from
Defined in
bottom
• Optional
bottom: number
The distance from the bottom edge of the parent element.
Inherited from
Defined in
color
• Optional
color: ArrayLike
<number
>
The color of the text as an array-like structure of [r, g, b, a] values, where each value is in the range [0, 1].
Inherited from
Defined in
flexBasis
• Optional
flexBasis: number
The initial size of the element along the main axis.
Inherited from
Defined in
flexDirection
• Optional
flexDirection: FlexDirection
The direction of the flex layout.
Inherited from
Defined in
flexGrow
• Optional
flexGrow: number
The factor by which the element should grow if there is extra space.
Inherited from
Defined in
flexShrink
• Optional
flexShrink: number
The factor by which the element should shrink if there is not enough space.
Inherited from
Defined in
flexWrap
• Optional
flexWrap: FlexWrap
The wrapping behavior of the flex layout.
Inherited from
Defined in
fontFamily
• Optional
fontFamily: string
The font family used for the text. Any valid css font-family property value is allowed.
Inherited from
Defined in
fontSize
• Optional
fontSize: number
The font size of the text in pixels.
Inherited from
Defined in
fontStyle
• Optional
fontStyle: string
The font style used for the text, e.g. 'normal' or 'italic'. Any valid css font-style property value is allowed.
Inherited from
Defined in
fontWeight
• Optional
fontWeight: string
The font weight used for the text, e.g. 'normal', 'bold', or a numeric value. Any valid css font-weight property value is allowed.
Inherited from
Defined in
height
• Optional
height: number
The height of the element in pixels.
Inherited from
Defined in
justifyContent
• Optional
justifyContent: FlexJustify
The justification of the element's content.
Inherited from
Defined in
label
• Optional
label: string
The button label text.
Defined in
left
• Optional
left: number
The distance from the left edge of the parent element.
Inherited from
Defined in
margin
• Optional
margin: ArrayLike
<number
>
The margin of the element in pixels.
Inherited from
Defined in
maxHeight
• Optional
maxHeight: number
The maximum height of the element in pixels.
Inherited from
Defined in
maxWidth
• Optional
maxWidth: number
The maximum width of the element in pixels.
Inherited from
Defined in
minHeight
• Optional
minHeight: number
The minimum height of the element in pixels.
Inherited from
Defined in
minWidth
• Optional
minWidth: number
The minimum width of the element in pixels.
Inherited from
Defined in
padding
• Optional
padding: ArrayLike
<number
>
The padding of the element in pixels.
Inherited from
Defined in
position
• Optional
position: ElementPositionType
The position type of the element (ex. "relative" or "absolute").
Inherited from
Defined in
right
• Optional
right: number
The distance from the right edge of the parent element.
Inherited from
Defined in
top
• Optional
top: number
The distance from the top edge of the parent element.
Inherited from
Defined in
value
• Optional
value: string
The text content of the UIText element.
Inherited from
Defined in
width
• Optional
width: number
The width of the element in pixels.