HelixOverviewComponentsMapsGraphIntroductionInstallationDeriving a themeSandboxTheme builderVisual testingCortexDocsEngramActiveTraceActiveRecallActiveServicesInsightsGet in touchSource on GitHub
Loading the reference
HighlighterView sourceEdit in SandboxView MarkdownCopy MarkdownOpen in ClaudeOpen in CursorWords in a sentence marked as with a highlighter pen, drawn on as they come into view.Also called Highlight text, Marker, Mark, and Highlight.ExperimentalSince 0.241.0ContentImportimport'@fusion.dev/helix/highlighter'Preview
API referenceRoothelix-highlighterWords in a sentence marked as with a highlighter pen, drawn on as they come into view.
ReadTypeDescriptionwhenSettledPromise<void>Resolves a frame after the first update, when transitions are switched on.
SlotDescription(default)The words marked.
PartDescriptionmarkThe <mark> the band is drawn behind.
CSS PropertyDescription--highlighter-colorThe band's color. Defaults to --helix-color-warning at 35%, a highlighter's yellow over the page in either mode.--highlighter-durationHow long the stroke takes. Defaults to two and a half times --helix-duration-slow, 800ms.
Custom stateDescriptiondrawnThe words have come into view, so the band is drawn behind them.settledSet one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
Examples
NameDescriptionPreviewA sentence whose key words are marked, the band drawn on as they come into view.