react-cursive-handwrite
Version:
React component to animate cursive handwriting text
20 lines (19 loc) • 643 B
TypeScript
import React, { ElementType } from "react";
interface HandwritingTextProps {
/** The text to be displayed */
children: React.ReactNode;
/** Color of the stroke */
strokeColor?: string;
/** Width of the stroke */
strokeWidth?: number;
/** Duration of the animation in seconds */
duration?: number;
/** HTML element type to wrap the text (defaults to 'div') */
as?: ElementType;
/** Path to the font folder containing letter SVGs */
fontPath?: string;
/** Whether to show debug logging */
debug?: boolean;
}
export declare const HandwritingText: React.FC<HandwritingTextProps>;
export {};