KSignature

fun KSignature(text: String, modifier: Modifier = Modifier, visible: Boolean = true, color: Color = KSignatureDefaults.FontColor, height: Dp = KSignatureDefaults.Height, durationMs: Int = KSignatureDefaults.DurationMs, delayMs: Int = KSignatureDefaults.DelayMs)(source)

Animated signature handwriting reveal component that simulates a continuous pen stroke drawing text characters across a canvas path (Spell.sh / React Signature inspired).

Parameters

text

The text string to render as a signature path.

modifier

Applied to the canvas layout container.

visible

Controls whether the signature drawing animation runs or resets.

color

Stroke and fill color for the signature text.

height

Viewport height of the signature canvas container.

durationMs

Animation duration in milliseconds for the drawing sequence.

delayMs

Delay before starting the draw animation.