Package-level declarations

Types

Link copied to clipboard

Properties

Link copied to clipboard

A ProvidableCompositionLocal that provides a LocaleList for localization purposes. ODS Core components use it to enable proper glyph rendering.

Functions

Link copied to clipboard
fun Text(text: AnnotatedString, baseTypography: BaseTypography, color: Color, modifier: Modifier = Modifier, maxLines: Int = Int.MAX_VALUE, textDecoration: TextDecoration? = null, textAlign: TextAlign = TextAlign.Unspecified)
fun Text(text: String, baseTypography: BaseTypography, color: Color, modifier: Modifier = Modifier, maxLines: Int = Int.MAX_VALUE, textDecoration: TextDecoration? = null, textAlign: TextAlign = TextAlign.Unspecified)

The Text composable can be used to display plain text or styled text from a BaseTypography. The text will be truncated with an ellipsis if it exceeds the given number of lines.

fun Text(text: AnnotatedString, prominentTypography: ProminentTypography, color: Color, modifier: Modifier = Modifier, maxLines: Int = Int.MAX_VALUE, textDecoration: TextDecoration? = null, textAlign: TextAlign = TextAlign.Unspecified)
fun Text(text: String, prominentTypography: ProminentTypography, color: Color, modifier: Modifier = Modifier, maxLines: Int = Int.MAX_VALUE, textDecoration: TextDecoration? = null, textAlign: TextAlign = TextAlign.Unspecified)

The Text composable can be used to display plain text or styled text from a ProminentTypography. The text will be truncated with an ellipsis if it exceeds the given number of lines.

fun Text(text: AnnotatedString, typography: Typography, fontWeight: FontWeight, color: Color, modifier: Modifier = Modifier, maxLines: Int = Int.MAX_VALUE, textDecoration: TextDecoration? = null, textAlign: TextAlign = TextAlign.Unspecified)
fun Text(text: String, typography: Typography, fontWeight: FontWeight, color: Color, modifier: Modifier = Modifier, maxLines: Int = Int.MAX_VALUE, textDecoration: TextDecoration? = null, textAlign: TextAlign = TextAlign.Unspecified)

The Text composable can be used to display plain text or styled text from a Typography and FontWeight. The text will be truncated with an ellipsis if it exceeds the given number of lines.

fun Text(text: AnnotatedString, typographyDimensions: TypographyDimensions, fontFamily: FontFamily, fontWeight: FontWeight, color: Color, modifier: Modifier = Modifier, maxLines: Int = Int.MAX_VALUE, textDecoration: TextDecoration? = null, textAlign: TextAlign = TextAlign.Unspecified)

The Text composable can be used to display plain text or styled text from a TypographyDimensions, FontFamily, and FontWeight. The text will be truncated with an ellipsis if it exceeds the given number of lines.

fun Text(text: String, typographyDimensions: TypographyDimensions, fontFamily: FontFamily, fontWeight: FontWeight, color: Color, modifier: Modifier = Modifier, maxLines: Int = Int.MAX_VALUE, textDecoration: TextDecoration? = null, textAlign: TextAlign = TextAlign.Unspecified)

The Text composable can be used to display plain text or styled text from a TypographyDimensions, FontFamily, and FontWeight.