Skip to content

TypeWriter

TypeWriter(__namedParameters): Element

Defined in: stream-text.tsx:140

TypeWriter - Display text with typewriter effect.

Simulates typing effect for non-streaming text.

TypeWriterProps

Element

import { TypeWriter } from 'ai.matey.react.stream';
function WelcomeMessage() {
return (
<TypeWriter
text="Welcome to AI Matey!"
speed={50}
onComplete={() => console.log('Done typing')}
/>
);
}