@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
20 lines • 483 B
TypeScript
//#region src/components/highlight/use-highlight.d.ts
interface Chunk {
match: boolean;
text: string;
}
interface UseHighlightProps {
query: string | string[];
text: string;
}
declare const useHighlight: ({
query,
text
}: UseHighlightProps) => {
match: boolean;
text: string;
}[];
type UseHighlightReturn = ReturnType<typeof useHighlight>;
//#endregion
export { Chunk, UseHighlightProps, UseHighlightReturn, useHighlight };
//# sourceMappingURL=use-highlight.d.ts.map