mycrossword
Version:
React crossword component
19 lines (17 loc) • 800 B
TypeScript
import { CellChange, CellFocus, GuardianCrossword, GuessGrid } from '~/types';
interface CrosswordProps {
allowedHtmlTags: string[];
allowMissingSolutions: boolean;
cellMatcher: RegExp;
cellSize: number;
data: GuardianCrossword;
id: string;
loadGrid?: GuessGrid;
onCellChange?: (cellChange: CellChange) => void;
onCellFocus?: (cellFocus: CellFocus) => void;
onComplete?: () => void;
saveGrid?: (value: GuessGrid | ((val: GuessGrid) => GuessGrid)) => void;
stickyClue: 'always' | 'never' | 'auto';
}
export default function Crossword({ allowedHtmlTags, allowMissingSolutions, cellMatcher, cellSize, data, id, loadGrid, onCellChange, onCellFocus, onComplete, saveGrid, stickyClue, }: CrosswordProps): import("react/jsx-runtime").JSX.Element;
export {};