UNPKG

react-markdown-typewriter

Version:

React Markdown component where Typewriter effect with motion has been added.

17 lines (14 loc) 579 B
import * as react_markdown_lib from 'react-markdown/lib'; import { Variants } from 'motion/react'; import { RefObject } from 'react'; import MarkdownTypewriterProps from '../interfaces/MarkdownTypewriterProps.js'; import 'react-markdown'; declare function typewriterHook(props: { delay?: MarkdownTypewriterProps["delay"]; onCharacterAnimationComplete?: (letterRef: RefObject<HTMLSpanElement | null>) => void; characterVariants?: Variants; }): { sentenceVariants: Variants; components: react_markdown_lib.Components; }; export { typewriterHook as default };