Skip to content

Marker Text

A loose hand-drawn mark circles or underlines your words.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import MarkerText from "./MarkerText";
export default function Example() {
return (
<MarkerText
children={"Worth a closer look."}
color={"#c99762"}
variant={"circle"}
strokeWidth={3}
duration={900}
defaultActive={true}
style={{
"color": "#efe3d1",
"fontSize": 40,
"letterSpacing": "-.045em"
}}
/>
);
}

Using Marker Text

Wrap the words to emphasise in children and choose circle or underline through variant.

Use strokeWidth and duration to tune the mark. Set defaultActive to false for an interaction-led mark, or active to coordinate it with another control.

Props

NameTypeRequiredDefaultDescription
childrenReactNodeNoundefinedThe content to mark. The stroke follows text size and wrapping; use text or non-interactive React content.
colorstringNo"#d8ad78"Marker stroke colour.
variantstringNo"circle"circle or underline.
strokeWidthnumberNo3Stroke width in pixels, unaffected by text scaling.
durationnumberNo700Drawing duration in milliseconds. Interrupted hover transitions reverse smoothly from their current position.
activebooleanNoundefinedOptional controlled visibility of the mark.
defaultActivebooleanNotrueKeep the mark visible; false makes it appear on hover or focus.
classNamestringNo""Additional classes merged with component styles.
styleCSSPropertiesNoundefinedInline styles for caller-defined sizing, typography, and appearance.

Related components

Reflection Text

Text Effects

Crisp typography meets a soft, fading reflection beneath the baseline.

Morphing Words

Text Effects

Words dissolve through a soft blur while the headline keeps its width.

Dot Matrix Text

Text Effects

Amber pinpoints form a crisp matrix display with a soft travelling pulse.

Scan Text

Text Effects

A warm scanning light brings a dim headline into focus.