UNPKG

windups

Version:

A unique typewriter effect library for React.

12 lines (11 loc) 535 B
import * as React from "react"; import { Windup } from "../Windup"; import { HookMetadata } from "./useWindup"; declare type OnCharProps = { children: React.ReactNode; fn: (char: string) => void; }; declare const OnChar: React.FC<OnCharProps>; export declare function isOnCharElement(element: React.ReactElement): element is React.ReactElement<OnCharProps>; export declare function onCharsFromWindup<M extends HookMetadata, W extends Windup<string, M>>(windup: W): ((char: string) => void)[]; export default OnChar;