Text Scribble

Hand-drawn scribble, underline, and strike marks that draw themselves onto text.

textscribbleunderlinestrike throughannotationsvgtypography
Text Scribble component preview

Props

PropTypeDefaultDescription
childrenReact.ReactNode-The inline content to annotate.
type"scribble" | "underline" | "strike-through""scribble"Annotation style. All three stroke on top of the text and track line wrapping.
colorstringchili (brand)Stroke color. Defaults to the Wensity brand (chili).
strokeWidthnumber2Stroke width in CSS pixels.
durationnumber0.9Seconds for the draw-on.
delaynumber0Seconds to wait before drawing.
trigger"view" | "hover" | "mount""view"When to draw. View draws once on-screen; hover draws and retracts.
iterationsnumber2 (scribble) / 1Sketch passes for the hand-drawn look. Clamped 1–4.
paddingnumber2Extra px around the text before the mark is drawn.
drawnboolean-Force the draw state. When omitted the trigger drives it; reduced motion always draws instantly.
askeyof JSX.IntrinsicElements"span"Outer element tag.