Squiggly Underline
A hand-drawn, wavy underline that draws itself on when scrolled into view. The wave scales with the inherited font size, mirrors for RTL, and tints both text and stroke when a color is set so emphasis never relies on the underline alone.
Installation
npx stepwise-ui add squiggly-underline
Props
PropTypeDescription
childrenReact.ReactNodeThe text (or nodes) to underline.
colorstringTints text and stroke. Default currentColor.
amplitudenumberWave height in px. Scales from font size when omitted.
wavelengthnumberWave length in px. Scales from font size when omitted.
thicknessnumberStroke width in px. Scales from font size when omitted.
durationnumberDraw-on duration in seconds at ~100px width. Scales with text length. Default 1.1.
delaynumberPause before the draw begins, in seconds. Default 0.2.
replayInViewbooleanReplay the draw each time it scrolls into view. Default false.
classNamestringTailwind classes for font size, weight, and tracking.