UNPKG

react-typing-test

Version:

A react component typing test, user input and wpm calculations.

14 lines (13 loc) 543 B
import React from "react"; import { type SupportedLanguage } from "../util/wordListGenerator"; import type { Theme, ThemeNames } from "../themes/themes"; type TypingTestProps = { wordLimit?: number; language?: SupportedLanguage; theme?: ThemeNames; onSetWPM?: (wpm: number) => void; customWordList?: string[]; customTheme?: Theme; }; export declare const TypingTest: ({ wordLimit, language, theme, onSetWPM, customWordList, customTheme, }: TypingTestProps) => React.JSX.Element; export default TypingTest;