A text search overlay for any corpus. As you type, matching words are highlighted and connected by curved SVG arcs. Related word chips can be configured per query. Uses ResizeObserver to recompute link positions on layout changes. Includes a meta row showing match count and related words.
concordance-preview
Loading preview...
Why it helps: A concordance turns a wall of text into an interactive exploration tool. The curved arcs create a visual rhythm between repeated words, making patterns jump out.
Also good to know:
// Loading source...
import { Concordance } from "@/components/live/Concordance";
<Concordance
text="Your long text here..."
related={{ word: ["synonym1", "synonym2"] }}
/>The corpus text to search within.
Optional related word map.
Search input placeholder.
Base font size for the corpus.
Active match accent color.
Link arc stroke color.
Max highlighted matches.
Show match count and related chips.
Called when the query changes.
Additional CSS classes.
The art of programming is the art of organizing complexity, of mastering multitude and avoiding its bastard chaos as effectively as possible. A programmer is a person who passes as an orderly person in order to deal with a seemingly disordered matter. Programming is the art of telling another human being what one wants the computer to do. The most important property of a program is whether it accomplishes the intention of its user.
import { Concordance } from "@/components/live/Concordance";
<Concordance
text="Your long text here..."
related={{ word: ["synonym1", "synonym2"] }}
/>