docs
›
reference
›
text reference
text reference
Text exposes 50 init properties. a subset of Container's surface.
if a style you want isn't here, wrap the Text in a Container and set the style there.
sizing
| property |
type |
| Width |
Length? |
| Height |
Length? |
| MinWidth |
Length? |
| MinHeight |
Length? |
| MaxWidth |
Length? |
| MaxHeight |
Length? |
spacing
| property |
type |
| Margin |
Length? |
| MarginLeft |
Length? |
| MarginTop |
Length? |
| MarginRight |
Length? |
| MarginBottom |
Length? |
flex
| property |
type |
| FlexBasis |
Length? |
| FlexGrow |
float? |
| FlexShrink |
float? |
background and opacity
| property |
type |
| BackgroundColor |
Color? |
| Opacity |
float? |
font
| property |
type |
| FontFamily |
string? |
| FontSize |
Length? |
| FontWeight |
int? |
| FontColor |
Color? |
| FontStyle |
FontStyle? |
| FontSmooth |
FontSmooth? |
| FontVariantNumeric |
FontVariantNumeric? |
text
| property |
type |
| TextAlign |
TextAlign? |
| TextOverflow |
TextOverflow? |
| TextTransform |
TextTransform? |
| TextDecorationLine |
TextDecoration? |
| TextDecorationColor |
Color? |
| TextDecorationStyle |
TextDecorationStyle? |
| TextDecorationThickness |
Length? |
| TextDecorationSkipInk |
TextSkipInk? |
| TextUnderlineOffset |
Length? |
| TextLineThroughOffset |
Length? |
| TextOverlineOffset |
Length? |
| TextStrokeColor |
Color? |
| TextStrokeWidth |
Length? |
| TextFilter |
FilterMode? |
| TextBackgroundAngle |
Length? |
| LetterSpacing |
Length? |
| LineHeight |
Length? |
| WordSpacing |
Length? |
| WhiteSpace |
WhiteSpace? |
| WordBreak |
WordBreak? |
state variants
| property |
type |
| HoverBackgroundColor |
Color? |
| ActiveBackgroundColor |
Color? |
| FocusBackgroundColor |
Color? |
| HoverFontColor |
Color? |
| ActiveFontColor |
Color? |
| FocusFontColor |
Color? |
| TransitionMs |
int? |