UNPKG

@crashbytes/react-version-compare

Version:

A React component for comparing strings and arrays with precise word-level and item-level highlighting of differences.

16 lines (13 loc) 452 B
import React from 'react'; import { Document } from '@contentful/rich-text-types'; interface CompareProps { original: string | string[] | Document; modified: string | string[] | Document; className?: string; viewMode?: 'side-by-side' | 'inline'; caseSensitive?: boolean; compareMode?: 'text' | 'structure'; } declare const Compare: React.FC<CompareProps>; export { Compare, Compare as default }; export type { CompareProps };