KRandomizedText

fun KRandomizedText(text: String, modifier: Modifier = Modifier, visible: Boolean = true, split: KRandomizedSplitMode = KRandomizedTextDefaults.SplitMode, baseDelaySec: Float = KRandomizedTextDefaults.BaseDelaySec, durationMs: Int = KRandomizedTextDefaults.DurationMs, style: TextStyle = LocalTextStyle.current)(source)

Text component that reveals words or characters with randomized stagger delays and a smooth exponential fade-in transition (Spell.sh / React RandomizedText inspired).

Parameters

text

The source string to render and animate.

modifier

Applied to the FlowRow or text wrapper layout.

visible

Controls whether the randomized fade-in animation triggers or resets.

split

Specifies whether to break down by KRandomizedSplitMode.WORDS or KRandomizedSplitMode.CHARS.

baseDelaySec

Base delay offset in seconds before elements start animating.

durationMs

Animation duration per element in milliseconds.

style

Typography style applied to the text elements.