Skip to content

HighlightProps beta ​

Interface of @v12-engine/client/kit

ts
export interface HighlightProps

What Highlight is given: a text, and the letters of it that matched, either found here from the words typed (query, as the kit's search finds them: as typed, or nearly) or given (ranges, a SearchHit's)

Members ​

class ​

ts
class?: string;

For the whole of it

markClass ​

ts
markClass?: string;

For each run of letters marked: the theme's mark when left out

query ​

ts
query?: string;

The words typed: the letters of the text they were found in are marked. Nothing typed marks nothing

ranges ​

ts
ranges?: readonly MatchRange[];

The letters to mark, given (a SearchMatch.ranges): instead of finding them from query

text ​

ts
text: string;

The text shown