UNPKG

react-word-spell-checker

Version:

A customizable React input wrapper for real-time spell checking using nspell. Works offline with no external API required.

12 lines (11 loc) 421 B
import React from "react"; interface SpellCheckerWrapperProps { value: string; onChange: (val: string) => void; className?: string; renderDropdown?: (suggestions: string[], onSelect: (word: string) => void) => React.ReactNode; children: React.ReactElement<any>; suggestionLimit?: number; } declare const SpellCheckerWrapper: React.FC<SpellCheckerWrapperProps>; export default SpellCheckerWrapper;