API Referencegraphite
UIStyleVariant
Optional style overrides for one state; setter methods support chaining.
Module: graphite
Optional style overrides for one state; setter methods support chaining.
Declaration
export class UIStyleVariant { ... }Properties
paddingValue
The optional padding value.
paddingValue?: number;cornerRadiusValue
The optional corner radius value.
cornerRadiusValue?: number;borderWidthValue
The optional border width value.
borderWidthValue?: number;backgroundColorValue
The optional background color value.
backgroundColorValue?: Color;borderColorValue
The optional border color value.
borderColorValue?: Color;foregroundColorValue
The optional foreground color value.
foregroundColorValue?: Color;tintColorValue
The optional tint color value.
tintColorValue?: Color;fontValue
The optional font value.
fontValue?: Font;fontSizeValue
The optional font size value.
fontSizeValue?: number;Methods
padding
Padding.
padding(value: Size2d): UIStyleVariant;cornerRadius
Corner radius.
cornerRadius(value: number): UIStyleVariant;borderWidth
Border width.
borderWidth(value: number): UIStyleVariant;backgroundColor
Background color.
backgroundColor(value: Color): UIStyleVariant;borderColor
Border color.
borderColor(value: Color): UIStyleVariant;foregroundColor
Foreground color.
foregroundColor(value: Color): UIStyleVariant;tintColor
Tint color.
tintColor(value: Color): UIStyleVariant;font
Font.
font(value: Font): UIStyleVariant;fontSize
Font size.
fontSize(value: number): UIStyleVariant;