UNPKG

@mikhail2404/react-ts-typewriter

Version:

React typewriter component written in TypeScript with React 18

14 lines (13 loc) 419 B
/// <reference types="react" /> export interface ITypewriterProps { text: string | string[]; speed?: number; loop?: boolean; newLine?: boolean; random?: number; delay?: number; cursor?: boolean; onFinished?: Function; onStart?: Function; } export default function Typewriter({ text, speed, loop, newLine, random, delay, cursor, onFinished, onStart }: ITypewriterProps): JSX.Element;