UNPKG

mui-extended

Version:

Extended UI Components built on Material UI

27 lines (26 loc) 770 B
import { Component } from "react"; export type TextTypingAnimationProps = { children: string; speed?: number; repeat?: boolean; repeatInterval?: number; reverse?: boolean; onComplete?: () => void; }; type TextTypingAnimationState = { text: string; originalText: string; }; export declare class TextTypingAnimation extends Component<TextTypingAnimationProps, TextTypingAnimationState> { private stopCurrentLoop; private currentLoop; constructor(props: TextTypingAnimationProps); componentDidMount(): void; componentWillUnmount(): void; componentDidUpdate(prevProps: any): void; render(): string; wait(ms: number): Promise<void>; startTyping(): Promise<void>; typeNext(): Promise<void>; } export {};