Typewriter Text
fun TypewriterText(modifier: Modifier = Modifier, state: TypewriterState = rememberTypewriterState(), style: TextStyle = TabotaboTheme.typography.headline, weights: EmphasisWeights = EmphasisWeights.Headline, baseColor: Color = TabotaboTheme.colors.accent, focusedColor: Color = TabotaboTheme.colors.primary, textAlign: TextAlign = TextAlign.Start, maxLines: Int = Int.MAX_VALUE, minLines: Int = 1, content: EmphasisTextScope.() -> Unit)(source)
Emphasis line that types in letter by letter, sequentially across segments ("Hello" finishes before "User" starts). It runs once per text per state: recomposition and configuration changes don't replay it, while changing the text (or the state's key) does.
The full text is laid out from the first frame and only the revealed part is drawn, so nothing reflows while it types and accessibility always sees the full text.
Parameters
min Lines
Reserve lines up front so a changing status headline never shifts layout.