@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
13 lines (12 loc) • 420 B
TypeScript
export declare function foldAccents(text: string): string;
export interface HighlightChunk {
chunk: string;
highlighted: boolean;
color?: string;
}
export interface HighlighterOptions {
wholeWord?: boolean;
caseInsensitive?: boolean;
accentInsensitive?: boolean;
}
export declare function highlighter(value: string, _highlight: string | string[], options?: HighlighterOptions): HighlightChunk[];