rememberTypewriterState

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.

charDelay

Delay per character; defaults to the theme's typewriterCharDelay.

startDelay

Wait before the first character, e.g. to chain a subtitle after a title.

onFinished

Called once each time a reveal completes.