react-input-suggestions
Version:
A React input component with pluggable suggestions and autocomplete
9 lines (8 loc) • 404 B
TypeScript
import type { ReactElement } from 'react';
import React from 'react';
export declare const elementText: {
get: (node: React.ReactNode) => string | undefined;
highlightKeyword: (content: string, keyword: string) => React.ReactNodeArray;
cloneChildren: (children: ReactElement[], keyword: string) => any;
wrap: (node: React.ReactNode, keyword: string) => ReactElement | React.ReactNode;
};