Text effects
Hand-drawn text marker
Hand-drawn text marker: Wraps a span of text with a hand-drawn marker annotation, such as a highlight wash, underline, circle, or box, that draws itself on with a slightly imperfect sketched stroke.
Using Hand-drawn text marker
Hand-drawn text marker uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
action | select | highlight | Options: highlight, underline, box, circle, strike-through |
color | color | #F5C542 | No additional limit in the metadata. |
animateOnView | boolean | false | No additional limit in the metadata. |
strokeWidth | number | 1.5 | From 0.5 to 4; step 0.5 |
Which frameworks are available for Hand-drawn text marker?
Hand-drawn text marker is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Hand-drawn text marker depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Hand-drawn text marker?
The React source for Hand-drawn text marker includes: attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Hand-drawn text marker handle reduced motion?
Hand-drawn text marker reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0 : 0.9; pathLength: reduced ? 1 : played ? 1 : 0; reduced ? false : { pathLength: 0 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.