KHighlightedText
fun KHighlightedText(text: String, modifier: Modifier = Modifier, visible: Boolean = true, style: KHighlightStyle = KHighlightStyle.BACKGROUND, textStyle: TextStyle = LocalTextStyle.current, highlightColor: Color = KHighlightedTextDefaults.HighlightColor, textColor: Color = Color.Unspecified, strokeWidth: Dp = KHighlightedTextDefaults.Thickness, paddingHorizontal: Dp = KHighlightedTextDefaults.PaddingHorizontal, paddingVertical: Dp = KHighlightedTextDefaults.PaddingVertical, durationMs: Int = KHighlightedTextDefaults.DurationMs, delayMs: Int = KHighlightedTextDefaults.DelayMs)(source)
Text component featuring animated highlighter wipe effects (background marker, underline sweep, or sketchy encircled loop) inspired by Spell.sh.
Parameters
text
The string to render and highlight.
modifier
Applied to the layout container.
visible
Triggers or resets the highlight drawing animation.
style
Visual highlight style (KHighlightStyle.BACKGROUND, KHighlightStyle.UNDERLINE, or KHighlightStyle.CIRCLE).
textStyle
Typography style applied to the text.
highlightColor
Color of the marker fill or vector line stroke.
textColor
Custom text color override.
strokeWidth
Thickness of underline or circle strokes.
paddingHorizontal
Horizontal padding padding around background highlights.
paddingVertical
Vertical padding around background highlights.
durationMs
Animation duration in milliseconds.
delayMs
Delay before starting the highlight drawing animation.