mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 22:49:31 -07:00
feat(text-animations): add GlitchText component
This commit is contained in:
19
src/constants/code/TextAnimations/glitchTextCode.ts
Normal file
19
src/constants/code/TextAnimations/glitchTextCode.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import code from '@/content/TextAnimations/GlitchText/GlitchText.vue?raw';
|
||||
import type { CodeObject } from '../../../types/code';
|
||||
|
||||
export const glitchText: CodeObject = {
|
||||
cli: `npx jsrepo add https://vue-bits.dev/ui/TextAnimations/GlitchText`,
|
||||
usage: `<template>
|
||||
<GlitchText
|
||||
children="Vue Bits"
|
||||
:speed="0.5"
|
||||
:enable-shadows="true"
|
||||
:enable-on-hover="false"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import GlitchText from "./GlitchText.vue";
|
||||
</script>`,
|
||||
code
|
||||
};
|
||||
Reference in New Issue
Block a user