@asasugar-use/vue3-typewriter
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

vue3-typewriter

Vue3 Component for typewriter effects.

npm version npm downloads

Effects

Vue3Typewriter Effects

Installation

  • npm/yarn/pnpm
npm install @asasugar-use/vue3-typewriter
yarn add @asasugar-use/vue3-typewriter
pnpm add @asasugar-use/vue3-typewriter

Use

  • Import component
import Vue3Typewriter from  "@asasugar-use/vue3-typewriter"; // Import component
import '@asasugar-use/vue3-typewriter/style'; // Import style
  • Template
 <Vue3Typewriter text="打字机当前文本。" />

Props

Name Type Description Required Default
text String Text with typewriter effect Yes ''
typingSpeed Number Typing speed, the larger the value, the slower the speed No 100
cursorShow Boolean Is the cursor at the end of the text flashing No true
cursorColor String Cursor color value No red

Methods

Name Type Description
completed Function Callback for typing completion

Package Sidebar

Install

npm i @asasugar-use/vue3-typewriter

Weekly Downloads

2

Version

0.0.4

License

none

Unpacked Size

9.87 kB

Total Files

8

Last publish

Collaborators

  • asasugar_