@bishal-shrestha/react-typewriter
Version:
A flexible and scalable React component for typing effect with multi-line support
18 lines (17 loc) • 677 B
TypeScript
import React from 'react';
export interface ReactTypewriterProps {
lines: string[];
typingSpeed?: number;
lineDelay?: number;
eraseSpeed?: number;
eraseDelay?: number;
loop?: boolean;
showCursor?: boolean;
cursor?: string | React.ReactNode;
className?: string;
style?: React.CSSProperties;
pause?: boolean;
onLineTyped?: (lineIndex: number) => void;
onLoopComplete?: () => void;
}
export default function ReactTypewriter({ lines, typingSpeed, lineDelay, eraseSpeed, eraseDelay, loop, showCursor, cursor, className, style, pause, onLineTyped, onLoopComplete, }: ReactTypewriterProps): import("react/jsx-runtime").JSX.Element;