vuejs-typing

VueJs-Typing Vue Typing is a lightweight directive compatible with both Vue 2 and Vue 3. It simulates the typing of text for any HTML tag, providing a dynamic typing effect. It's perfect for creating typing
1,445
Install
npm install vuejs-typing
Latest Version:1.2.1
Vue:3
License:MIT
Last Updated:Apr 26, 2025
Links: GitHub  ·  npm
Maintainer: vini-ts

VueJs-Typing

Vue Typing is a lightweight directive compatible with both Vue 2 and Vue 3. It simulates the typing of text for any HTML tag, providing a dynamic typing effect. It's perfect for creating typing animations in your Vue.js applications.

Installation Guide

This guide will help you install and use the directive in your Vue.js project.

Prerequisites

Ensure you have the following installed on your system:

  • Node.js and npm
  • Vue.js/Nuxt

Installation

  1. Install the package

    Open your terminal and run the following command:

    npm install vuejs-typing
    

Usage

You can use the directive either globally in your Vue application or locally in a single Vue component.

  1. Global import

    Import the directive and use it in your Vue application:

    import { createApp } from 'vue'
    import App from './App.vue'
    import typing from 'vuejs-typing'
    
    const app = createApp(App)
    
    app.use(typing)
    
  2. Local import

    Import the directive and use it in your Vue component:

    import { typing } from 'vuejs-typing'
    
    export default {
      directives: {
        typing
      }
    }
    

Use the directive

You can now use the directive in your Vue template:

<div v-typing="'Hello World'"></div>

Or with an object configuration:

<div v-typing="{ text: 'Hello World', typeSpeed: 100, hasCaret: true, caretSymbol: '|', wordSplit: false }"></div>

Vuejs-Typing demo gif

Configuration

Property Type Default Description
text string '' The text to be typed out.
typeSpeed number 100 The speed at which the text is typed out. (ms)
hasCaret boolean true Whether to display a caret at the end of the typing.
caretSymbol string 'I' The symbol to use for the caret.
wordSplit boolean false Whether to split the text into words. If true, each word is typed out separately.
caret object null The caret object. This is managed internally and should not be set manually.
onStart function null A function to be called when the typing starts.
onEnd function null A function to be called when the typing ends.

Related Packages

vsnow

Snowfall effect for Vue js

3,472 4
fullpage-nuxt

Nuxt module for fullpage-vue plugin

1,600 24
@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903
nuxt-tsconfig-stub

Stub Nuxt's generated tsconfig.json at installation

70,835 24
@sparing-software/v-clamp

Vue directive plugin for text truncate

3,655 15

Version History

Version Released Vue License
1.2.1 ^3.4.21 MIT
1.2.0 ^3.4.21 MIT
1.1.2 ^3.4.21 MIT
1.1.1 ^3.4.21 MIT
1.1.0 ^3.4.21 MIT