useTypewriterFromSentences

COMPOSABLE

A composable which returns a Typewriter from @uiloos/core which is configured using typewriterFromSentences. Meaning returns a Typewriter which will type in the provided sentences using a single cursor.

What the composable does is register itself to the Typewriter for changes, when a change is detected it makes sure that the component using the composable is re-rendered.

Since 1.2.0

Signature

useTypewriterFromSentences( ): Ref<Typewriter>

Parameters

config: TypewriterFromSentencesConfig

The initial configuration of the Typewriter.

Returns

An instance of the Typewriter from @uiloos/core