Enums: Text
TextAlignment
Defines the text alignment.
TextAlignment.DefaultNo alignment will be applied.TextAlignment.LeftAligns the text to the left.TextAlignment.RightAligns the text to the right.TextAlignment.StartAligns the text to the start.TextAlignment.EndAligns the text to the end.TextAlignment.CenterCenters the text.TextAlignment.JustifiedStretches the lines so that each line has equal width.
TextColor
Predefined set of contextual text colors.
TextColor.NoneNo color will be applied to an element.TextColor.PrimaryPrimary color.TextColor.SecondarySecondary color.TextColor.SuccessSuccess color.TextColor.DangerDanger color.TextColor.WarningWarning color.TextColor.InfoInfo color.TextColor.LightLight color.TextColor.DarkDark color.TextColor.BodyBody color.TextColor.MutedMuted color.TextColor.WhiteWhite color.TextColor.Black50Black text with 50% opacity on white background.TextColor.White50White text with 50% opacity on black background.
TextInputMode
Specifies what kind of input mechanism would be most helpful for users entering content.
TextInputMode.NoneThe user agent should not display a virtual keyboard. This keyword is useful for content that renders its own keyboard control.TextInputMode.TextThe user agent should display a virtual keyboard capable of text input in the user's locale.TextInputMode.TelThe user agent should display a virtual keyboard capable of telephone number input. This should including keys for the digits 0 to 9, the "#" character, and the "*" character. In some locales, this can also include alphabetic mnemonic labels (e.g., in the US, the key labeled "2" is historically also labeled with the letters A, B, and C).TextInputMode.UrlThe user agent should display a virtual keyboard capable of text input in the user's locale, with keys for aiding in the input of URLs, such as that for the "/" and "." characters and for quick input of strings commonly found in domain names such as "www." or ".com".TextInputMode.EmailThe user agent should display a virtual keyboard capable of text input in the user's locale, with keys for aiding in the input of e-mail addresses, such as that for the "@" character and the "." character.TextInputMode.NumericThe user agent should display a virtual keyboard capable of numeric input. This keyword is useful for PIN entry.TextInputMode.DecimalThe user agent should display a virtual keyboard capable of fractional numeric input. Numeric keys and the format separator for the locale should be shown.TextInputMode.SearchThe user agent should display a virtual keyboard optimized for search.
TextOverflow
Determines how the text will behave when it is larger than a parent container.
TextOverflow.DefaultNo overflow will be applied.TextOverflow.WrapText will wrap into a new line when it reaches the end of container.TextOverflow.NoWrapPrevents text from wrapping.TextOverflow.TruncateTruncate the text with an ellipsis.
TextRole
Defines the behaviour of the text input.
TextRole.TextDefines a default text input field.TextRole.EmailUsed for input fields that should contain an e-mail address.TextRole.PasswordDefines a password field.TextRole.UrlUsed for input fields that should contain a URL address.TextRole.SearchDefine a search field (like a site search, or Google search).TextRole.TelephoneDefine a field for entering a telephone number.
TextTransform
Defines the text transformation.
TextTransform.DefaultNo capitalization. The text renders as it is. This is default.TextTransform.LowercaseTransforms all characters to lowercase.TextTransform.UppercaseTransforms all characters to uppercase.TextTransform.CapitalizeTransforms the first character of each word to uppercase.
TextWeight
Defines the text weight.
TextWeight.DefaultNo weight will be applied.TextWeight.NormalDefines normal characters. This is default.TextWeight.BoldDefines thick characters.TextWeight.LightDefines lighter characters.
TextSize
Defines the font size.
TextSize.DefaultNo particular size rule will be applied, meaning a default size will be used..TextSize.ExtraSmallMakes an element text extra small size.TextSize.SmallMakes an element text small size.TextSize.MediumMakes an element text medium size.TextSize.LargeMakes an element text large.TextSize.ExtraLargeMakes an element text extra large.TextSize.Heading1Matches the element text size with theh1text size.TextSize.Heading2Matches the element text size with theh2text size.TextSize.Heading3Matches the element text size with theh3text size.TextSize.Heading4Matches the element text size with theh4text size.TextSize.Heading5Matches the element text size with theh5text size.TextSize.Heading6Matches the element text size with theh6text size.
Screenreader
Screen reader visibility.
Screenreader.AlwaysDefault.Screenreader.OnlyHide an element to all devices except screen readers.Screenreader.OnlyFocusableShow the element again when it’s focused.
MaskType
Lists values that specify the type of mask used by an editor.
MaskType.NoneSpecifies that the mask feature is disabled.MaskType.NumericSpecifies that the editor should accept numeric values and that the mask string must use the Numeric format syntax.MaskType.DateTimeSpecifies that the editor should accept date/time values and that the mask string must use the DateTime format syntax.MaskType.RegExSpecifies that the mask should be created using full-functional regular expressions.