Jenga Text
The canonical way to render text in Jenga.
Defaults to JengaTheme tokens: JengaTheme.typography.bodyMedium and JengaTheme.colors.textPrimary. Built on Compose Foundation's BasicText (no Material dependency), so its look is governed entirely by Jenga tokens.
Color resolution order: the explicit color param → the style's color → the inherited LocalJengaContentColor (e.g. set by a button) → the theme's JengaTheme.colors.textPrimary.
Parameters
the string to display.
the Modifier for this text.
text color; Color.Unspecified falls back to style then theme.
the TextStyle; defaults to body text from the theme.
horizontal alignment of the text within its bounds.
how visual overflow is handled.
whether text wraps at soft line breaks.
maximum number of lines; excess is truncated per overflow.
minimum number of lines to occupy.
optional cap on the system font scale for this text (e.g. 1.25f for display type). See io.github.joelkanyi.jenga.foundation.typography.JengaTypographyDefaults.
Samples
JengaText(
text = "Scan a ticket to begin",
)AnnotatedString overload of JengaText for rich/multi-style text (links, partial emphasis). Same color-resolution and maxFontScale rules as the String overload.
Parameters
the styled text to display.
the Modifier for this text.
base text color; Color.Unspecified falls back to style then theme.
the TextStyle; defaults to body text from the theme.
horizontal alignment of the text within its bounds.
how visual overflow is handled.
whether text wraps at soft line breaks.
maximum number of lines; excess is truncated per overflow.
minimum number of lines to occupy.
optional cap on the system font scale for this text.