Text Type(029)

Realistic mechanical typing and backspacing animation with blinking cursor.

Scroll
Requires:gsap
|

Installation

$npx kibo add text-type

Usage

1import { TextType } from "@/components/kibo/text-type/component";
2
3export default function Example() {
4 return (
5 <TextType />
6 );
7}

Props Reference

PropTypeDefaultDescription
classNamestring''Additional CSS classes for styling and layout.
showCursorbooleantrueControls the show cursor for the component animation.
hideCursorWhileTypingbooleanfalseControls the hide cursor while typing for the component animation.
cursorCharacterstring | React.ReactNode'|'Controls the cursor character for the component animation.
cursorBlinkDurationnumber0.5Controls the cursor blink duration for the component animation.
cursorClassNamestring''Controls the cursor class name for the component animation.
textstring | string[]-The text content to display and animate.
asElementType-Controls the as for the component animation.
typingSpeednumber50Controls the typing speed for the component animation.
initialDelaynumber0Controls the initial delay for the component animation.
pauseDurationnumber2000Controls the pause duration for the component animation.
deletingSpeednumber30Controls the deleting speed for the component animation.
loopbooleantrueControls the loop for the component animation.
textColorsstring[][]Controls the text colors for the component animation.
variableSpeed{ min: number; max: number }-Controls the variable speed for the component animation.
onSentenceComplete(sentence: string, index: number) => void-Controls the on sentence complete for the component animation.
startOnVisiblebooleanfalseControls the start on visible for the component animation.
reverseModebooleanfalseControls the reverse mode for the component animation.