Package-level declarations
JengaText, the text block every other block uses.
Functions
Link copied to clipboard
fun JengaText(text: AnnotatedString, modifier: Modifier = Modifier, color: Color = Color.Unspecified, style: TextStyle = JengaTheme.typography.bodyMedium, textAlign: TextAlign? = null, overflow: TextOverflow = TextOverflow.Clip, softWrap: Boolean = true, maxLines: Int = Int.MAX_VALUE, minLines: Int = 1, maxFontScale: Float? = null)
AnnotatedString overload of JengaText for rich/multi-style text (links, partial emphasis). Same color-resolution and maxFontScale rules as the String overload.
fun JengaText(text: String, modifier: Modifier = Modifier, color: Color = Color.Unspecified, style: TextStyle = JengaTheme.typography.bodyMedium, textAlign: TextAlign? = null, overflow: TextOverflow = TextOverflow.Clip, softWrap: Boolean = true, maxLines: Int = Int.MAX_VALUE, minLines: Int = 1, maxFontScale: Float? = null)
The canonical way to render text in Jenga.