UNPKG

react-ts-typewriter

Version:

React typewriter component written in TypeScript with React 18

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