Skip to content

fewhnhouse/use-typewriter

Repository files navigation

use-typewriter

This package provides a simple React Hook to delay the print of a given string by a given time (ms).

API

useTypewriter({title: string, speed?: number}): string

Usage

const App = () => {
	const title = useTypewriter({title: 'Test Title', speed: 60})
	return <h1>{title}</h1>
}

About

A React Hook to write text delayed on render, like a typewriter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published