vue3-type-writer
v1.1.0
Published
A Vue 3 typewriter effect component
Downloads
7
Readme
vue3-type-writer
Install
npm install vue3-type-writer
# or
yarn add vue3-type-writer
# or
pnpm add vue3-type-writer
Usage
Global Import
import { createApp } from 'vue'
import App from './App.vue'
import TypeWriter from 'vue3-type-writer'
const app = createApp(App)
app.use(TypeWriter);
app.mount('#app');
// In your component
<template>
<TypeWriter :text="text"/>
</template>
Local Import
import { TypeWriter } from 'vue3-type-writer'
<template>
<TypeWriter :text="text"/>
</template>
Props
| Prop | Type | Default | Description | | --- | --- |---------| --- | | text | String | -- | Text to be typed | | speed | Number | 100 | Typing speed in milliseconds |
License
MIT