Skip to Content
✨ QuickCode UI keeps growing! More components, more features, and more ways to make your projects shine. Stay tuned & maybe… hire me or sponsor me 😉 
DocumentationTypingText

TypingText

An animated typing effect component that displays text character by character with optional erasing and looping.

This component is inspired by ReactBits TextType . All credit goes to the original creators.

Install Dependencies

npx
quickcode-ui add TypingText

Example

|

Props

PropTypeDefaultDescription
contentstring | string[]Text content to display. Can be a single string or array of strings for rotation
asElementType'div'HTML element or component to render
speednumber50Typing speed in milliseconds per character
startDelaynumber0Delay before animation starts in milliseconds
pausenumber2000Pause duration after completing a string before erasing
eraseSpeednumber30Erasing speed in milliseconds per character
repeatbooleantrueWhether to loop through strings continuously
cursorbooleantrueShow animated cursor
cursorCharstring | React.ReactNode'|'Character or element to use as cursor
cursorHidebooleanfalseHide cursor while typing and erasing
cursorClassstring''Additional CSS classes for cursor
cursorBlinknumber0.5Cursor blink duration in seconds
colorsstring[][]Array of colors to cycle through for each string
randomSpeed{ min: number; max: number }Random speed range for variable typing speed
onComplete(content: string, index: number) => voidCallback fired when a string completes typing
triggerOnViewbooleanfalseStart animation when component enters viewport
reversedbooleanfalseReverse the text direction
classNamestringAdditional CSS classes
Last updated on