remember Typewriter State
fun rememberTypewriterState(key: Any? = null, charDelay: Duration = TabotaboTheme.motion.typewriterCharDelay, startDelay: Duration = Duration.ZERO, onFinished: () -> Unit = {}): TypewriterState(source)
Remembers a TypewriterState that survives configuration changes.
Parameters
key
Changing it creates a fresh state, restarting the reveal. Text changes restart it automatically.
char Delay
Delay per character; defaults to the theme's typewriterCharDelay.
start Delay
Wait before the first character, e.g. to chain a subtitle after a title.
on Finished
Called once each time a reveal completes.